mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-21 20:14:24 +00:00
Ensure --quiet flag is honored
The code to disable logging ran before command line flags are parsed. Moved them around. Fixes #45
This commit is contained in:
parent
94e587399d
commit
7d431a7bd6
4
main.go
4
main.go
@ -64,13 +64,13 @@ func main() {
|
||||
}
|
||||
}
|
||||
|
||||
utils.ApplyFlags(cliFlags, flagMappings, c, appOptions, backendOptions)
|
||||
|
||||
if appOptions.Quiet {
|
||||
log.SetFlags(0)
|
||||
log.SetOutput(ioutil.Discard)
|
||||
}
|
||||
|
||||
utils.ApplyFlags(cliFlags, flagMappings, c, appOptions, backendOptions)
|
||||
|
||||
if c.IsSet("credential") {
|
||||
appOptions.EnableBasicAuth = true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user