mirror of
https://github.com/octoleo/restic.git
synced 2025-04-05 15:01:51 +00:00
list: validate subcommand
This commit is contained in:
parent
491cc65e3a
commit
49ccb7734c
@ -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…
x
Reference in New Issue
Block a user