forked from TrueCloudLab/restic
Merge pull request #3205 from MichaelEischer/fix-quiet-verbose
Properly check that --quiet and --verbose are not combined
This commit is contained in:
commit
44169d0dc4
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ directories in an encrypted repository stored on different backends.
|
|||
PersistentPreRunE: func(c *cobra.Command, args []string) error {
|
||||
// set verbosity, default is one
|
||||
globalOptions.verbosity = 1
|
||||
if globalOptions.Quiet && (globalOptions.Verbose > 1) {
|
||||
if globalOptions.Quiet && globalOptions.Verbose > 0 {
|
||||
return errors.Fatal("--quiet and --verbose cannot be specified at the same time")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue