1
0
mirror of https://github.com/smallstep/cli.git synced 2025-08-09 03:22:43 +03:00

Reverse insecure and --no-password in RequireWithFlag

This commit is contained in:
max furman
2021-05-17 11:57:10 -07:00
parent 1e905a13b7
commit bff3f1d23b
3 changed files with 6 additions and 5 deletions

View File

@@ -100,7 +100,7 @@ func changePassAction(ctx *cli.Context) error {
decryptPassFile := ctx.String("password-file")
encryptPassFile := ctx.String("new-password-file")
if noPass && !insecure {
return errs.RequiredWithFlag(ctx, "insecure", "no-password")
return errs.RequiredWithFlag(ctx, "no-password", "insecure")
}
keyPath := ctx.Args().Get(0)