Silence usage on commands that apply

This commit is contained in:
bwilliams committed 2026-10-09 09:29:53 +01:00
1 parent 6436253629
commit da81e6ccd9
3 files changed
+11 -2

No files matched your search

+3 -2
View File
@@ -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")
},