From 9d07b3a9ef24110debe5ef2c25065b75e594730c Mon Sep 17 00:00:00 2001 From: wanyx <1656026361@qq.com> Date: Wed, 3 Nov 2021 17:48:46 +0800 Subject: [PATCH] remove ValidArgs --- cmd/root.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index b28453a..ba9f1c3 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -6,10 +6,9 @@ import ( // rootCmd represents the base command when called without any subcommands var rootCmd = &cobra.Command{ - Use: "toolbox", - Short: "Khalil toolbox", - Long: `Khalil toolbox: mkpasswd`, - ValidArgs: []string{"mkpasswd", "https-expired"}, + Use: "toolbox", + Short: "Khalil toolbox", + Long: `Khalil toolbox: mkpasswd`, } // Execute adds all child commands to the root command and sets flags appropriately.