fix: verbose default not applied (#1884)

This commit is contained in:
Luke Kingland 2023-07-25 01:25:38 +09:00 committed by GitHub
parent 0def26fa79
commit 8703d9cf9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ func addPathFlag(cmd *cobra.Command) {
// addVerboseFlag ensures common text/wording when the --path flag is used
func addVerboseFlag(cmd *cobra.Command, dflt bool) {
cmd.Flags().BoolP("verbose", "v", false, "Print verbose logs ($FUNC_VERBOSE)")
cmd.Flags().BoolP("verbose", "v", dflt, "Print verbose logs ($FUNC_VERBOSE)")
}
// cwd returns the current working directory or exits 1 printing the error.