We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9338c69 commit 743fcb2Copy full SHA for 743fcb2
cmd/root.go
@@ -78,6 +78,12 @@ the latest stable version will be downloaded from the repository.`,
78
return nil
79
},
80
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
81
+ if len(args) != 0 {
82
+ switch args[0] {
83
+ case "--help", "-h", "--version", "-v":
84
+ return nil
85
+ }
86
87
switch cmd.Name() {
88
case "init", "rotate", "set":
89
if cmd.HasParent() && cmd.Parent().Name() == "mirror" {
0 commit comments