You've already forked step-ca-cli
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user