realestate-com-au / shush

It's a secret.
169 stars 36 forks source link

Usage error describes `--region` but `--region` flag doesn't work #5

Closed amcinnes closed 7 years ago

amcinnes commented 7 years ago
# shush --version
shush version 1.3.1

# shush encrypt alias/app-secrets
ERROR: please specify region (--region or $AWS_DEFAULT_REGION)

# shush encrypt --region ap-southeast-2 alias/app-secrets
Incorrect Usage: flag provided but not defined: -region

NAME:
   shush encrypt - Encrypt with a KMS key

USAGE:
   shush encrypt [arguments...]
mdub commented 7 years ago

That's ... awkward.

Thanks for the report.

mdub commented 7 years ago

Ah; it's a "global" option, so the --region has to go before the subcommand:

shush --region ap-southeast-2 encrypt alias/app-secrets supersecret
QGB commented 3 years ago
D:/test/lean deploy --region US
Incorrect Usage: flag provided but not defined: -region

NAME:
   lean deploy - Deploy the project to LeanEngine

USAGE:
   lean deploy [command options] [arguments...]

OPTIONS:
   -g                                              Deploy from git repo
   --war                                           Deploy .war file for Java project. The first .war file in target/ is used by default
   --no-cache                                      Force download dependencies
   --overwrite-functions                           Overwrite cloud functions with the same name in other groups
   --leanignore value                              Rule file for ignored files in deployment (default: ".leanignore")
   --message value, -m value                       Comment for this deployment, only applicable when deploying from local files
   --keep-deploy-file
   --revision value, -r value                      Git revision or branch. Only applicable when deploying from Git (default: "master")
   --options --options build-root=app&atomic=true  Send additional deploy options to server, in urlencode format(like --options build-root=app&atomic=true)
   --prod --prod 1                                 Deploy to production(--prod 1) or staging(`--prod 0`) environment, default to staging if it exists
mdub commented 3 years ago

Um, wrong window, @QGB?