From 0f4f5d58482334129d6499321e73a025a474d533 Mon Sep 17 00:00:00 2001 From: James Elliott Date: Fri, 14 Apr 2023 20:46:43 +1000 Subject: [PATCH] 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 --- internal/commands/crypto_hash.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/commands/crypto_hash.go b/internal/commands/crypto_hash.go index 7c85f3ef3..06cad1e7c 100644 --- a/internal/commands/crypto_hash.go +++ b/internal/commands/crypto_hash.go @@ -61,6 +61,7 @@ func newCryptoHashGenerateCmd(ctx *CmdCtx) (cmd *cobra.Command) { Short: cmdAutheliaCryptoHashGenerateShort, Long: cmdAutheliaCryptoHashGenerateLong, Example: cmdAutheliaCryptoHashGenerateExample, + Args: cobra.NoArgs, PreRunE: ctx.ChainRunE( ctx.ConfigSetDefaultsRunE(defaults), ctx.CryptoHashGenerateMapFlagsRunE,