list: validate subcommand

This commit is contained in:
Roman Inflianskas 2024-09-13 12:23:26 +03:00 committed by Michael Eischer
parent 491cc65e3a
commit 49ccb7734c

View file

@ -35,6 +35,7 @@ Exit status is 12 if the password is incorrect.
return runList(cmd.Context(), globalOptions, args)
},
ValidArgs: listAllowedArgs,
Args: cobra.MatchAll(cobra.ExactArgs(1), cobra.OnlyValidArgs),
}
func init() {