fix(commands): no args not enforced on crypto hash generate (#5237)
This fixes an issue where the authelia crypto hash generate command does not require no arguments leading to some confusing output. Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>pull/5238/head
parent
81de035874
commit
0f4f5d5848
|
@ -61,6 +61,7 @@ func newCryptoHashGenerateCmd(ctx *CmdCtx) (cmd *cobra.Command) {
|
||||||
Short: cmdAutheliaCryptoHashGenerateShort,
|
Short: cmdAutheliaCryptoHashGenerateShort,
|
||||||
Long: cmdAutheliaCryptoHashGenerateLong,
|
Long: cmdAutheliaCryptoHashGenerateLong,
|
||||||
Example: cmdAutheliaCryptoHashGenerateExample,
|
Example: cmdAutheliaCryptoHashGenerateExample,
|
||||||
|
Args: cobra.NoArgs,
|
||||||
PreRunE: ctx.ChainRunE(
|
PreRunE: ctx.ChainRunE(
|
||||||
ctx.ConfigSetDefaultsRunE(defaults),
|
ctx.ConfigSetDefaultsRunE(defaults),
|
||||||
ctx.CryptoHashGenerateMapFlagsRunE,
|
ctx.CryptoHashGenerateMapFlagsRunE,
|
||||||
|
|
Loading…
Reference in New Issue