Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make common args working after sub commands.
Now common args like `--secret-name` can be specified after the sub commands. Common args like `--secret-name` are needed by every sub commands. To avoid declaring them in every sub command, they are specified outside sub commands. I think `ksher cmd --secret-name XX` means better than `ksher --secret-name XX cmd`, hence they are set as `global`. But per clap-rs/clap#1546, an arg cannot be global and required at the same time. So `--secret-name` is set as `Option` and checked manually to throw a clap style error message.
- Loading branch information