Description
Severity: S3 (UX — contradicts global-flag docs)
Location: allways/cli/swap_commands/helpers.py — parse_global_flags()
When --netuid appears without a following token, the global-flag stripper does not consume it; it stays on argv, and Click reports No such option: --netuid on the subcommand. Operators expect global flags to work uniformly.
Steps to reproduce
alw view rates --netuid (nothing after --netuid)
Expected behaviour
Actual behaviour
Error: No such option: --netuid.
Screenshots
Fix
- In
parse_global_flags, detect --netuid with missing value (or --netuid= with empty RHS) and raise click.UsageError before Click sees unknown options.
Description
Severity: S3 (UX — contradicts global-flag docs)
Location:
allways/cli/swap_commands/helpers.py—parse_global_flags()When
--netuidappears without a following token, the global-flag stripper does not consume it; it stays onargv, and Click reportsNo such option: --netuidon the subcommand. Operators expect global flags to work uniformly.Steps to reproduce
alw view rates --netuid(nothing after--netuid)Expected behaviour
--netuid requires a value, consistent with--netuid=handling once CLI: validate netuid before int() in get_cli_context #236 lands.Actual behaviour
Error: No such option: --netuid.Screenshots
Fix
parse_global_flags, detect--netuidwith missing value (or--netuid=with empty RHS) andraise click.UsageErrorbefore Click sees unknown options.