Silence usage on commands that apply
This commit is contained in:
1 parent
6436253629
commit
da81e6ccd9
3 files changed
+11
-2
No files matched your search
@@ -26,8 +26,9 @@ import (
|
||||
|
||||
func NewCommand() *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "version",
|
||||
Short: "Print version information",
|
||||
Use: "version",
|
||||
Short: "Print version information",
|
||||
SilenceUsage: true,
|
||||
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
||||
slog.Debug("version.PersistentPreRun")
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user