mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-12-23 03:40:08 +01:00
🔧 Tweak default verbosity
This commit is contained in:
@@ -11,9 +11,10 @@ import Foundation
|
|||||||
let toolver = "0.1 (early access)"
|
let toolver = "0.1 (early access)"
|
||||||
|
|
||||||
let log = Log.shared
|
let log = Log.shared
|
||||||
|
log.verbosity = .info
|
||||||
|
|
||||||
if CommandLine.arguments.contains("-v") || CommandLine.arguments.contains("--verbose") {
|
if CommandLine.arguments.contains("-q") || CommandLine.arguments.contains("--quiet") {
|
||||||
Log.shared.verbosity = .info
|
Log.shared.verbosity = .warning
|
||||||
}
|
}
|
||||||
if CommandLine.arguments.contains("-p") || CommandLine.arguments.contains("--performance") {
|
if CommandLine.arguments.contains("-p") || CommandLine.arguments.contains("--performance") {
|
||||||
Log.shared.verbosity = .performance
|
Log.shared.verbosity = .performance
|
||||||
@@ -89,7 +90,7 @@ case .help:
|
|||||||
|
|
||||||
SUPPORTED FLAGS
|
SUPPORTED FLAGS
|
||||||
|
|
||||||
* `-v / --verbose`: Enables verbose mode.
|
* `-q / --quiet`: Silences all logs except for warnings and exceptions.
|
||||||
* `-p / --perf`: Enables performance mode.
|
* `-p / --perf`: Enables performance mode.
|
||||||
|
|
||||||
""")
|
""")
|
||||||
|
|||||||
Reference in New Issue
Block a user