You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which components does the task require to be changed? (think hard pls)
sncast
Description
It should be possible to pass common arguments both before and after subcommand name, e.g. both sncast --account default declare --contract_name name ... and sncast declare --account default --contract_name name ... should be allowed.
<!-- Reference any GitHub issues resolved by this PR -->
Closes#2492
## Introduced changes
Allow common arguments to be used after subcommand.
## Checklist
<!-- Make sure all of these are complete -->
- [x] Linked relevant issue
- [x] Updated relevant documentation
- [x] Added relevant tests
- [x] Performed self-review of the code
- [x] Added changes to `CHANGELOG.md`
---------
Co-authored-by: Artur Michałek <[email protected]>
Which components does the task require to be changed? (think hard pls)
sncast
Description
It should be possible to pass common arguments both before and after subcommand name, e.g. both
sncast --account default declare --contract_name name ...
andsncast declare --account default --contract_name name ...
should be allowed.This can be achieved using this method https://docs.rs/clap/latest/clap/struct.Arg.html#method.global
The text was updated successfully, but these errors were encountered: