refactor: Ignore error on MarkHidden for verbose flag

This commit is contained in:
Denis Bilenko (aider) 2024-12-09 13:15:27 +01:00 committed by Denis Bilenko
parent 583f6f2ac1
commit 9a41b6505b
1 changed files with 1 additions and 3 deletions

View File

@ -38,9 +38,7 @@ func newDeployCommand() *cobra.Command {
} }
cmd.Flags().BoolVar(&verbose, "verbose", false, "Enable verbose output.") cmd.Flags().BoolVar(&verbose, "verbose", false, "Enable verbose output.")
// Verbose flag currently only affects file sync output, it's used by the vscode extension // Verbose flag currently only affects file sync output, it's used by the vscode extension
if err := cmd.Flags().MarkHidden("verbose"); err != nil { _ = cmd.Flags().MarkHidden("verbose")
return nil
}
cmd.RunE = func(cmd *cobra.Command, args []string) error { cmd.RunE = func(cmd *cobra.Command, args []string) error {
ctx := cmd.Context() ctx := cmd.Context()