mirror of
https://github.com/restic/restic.git
synced 2024-12-23 00:07:25 +00:00
list: validate subcommand
This commit is contained in:
parent
6f08dbb2d7
commit
a84e65b7f9
1 changed files with 1 additions and 0 deletions
|
@ -35,6 +35,7 @@ Exit status is 12 if the password is incorrect.
|
||||||
return runList(cmd.Context(), globalOptions, args)
|
return runList(cmd.Context(), globalOptions, args)
|
||||||
},
|
},
|
||||||
ValidArgs: listAllowedArgs,
|
ValidArgs: listAllowedArgs,
|
||||||
|
Args: cobra.MatchAll(cobra.ExactArgs(1), cobra.OnlyValidArgs),
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
Loading…
Reference in a new issue