Flag key overrides is shown in doc, but actually unsupported.
|
flag "--file <file>" overrides="--stdin" // if --file is set, previous --stdin will be ignored |
flag-overrides.sh
#!/usr/bin/env -S usage bash
#USAGE flag "--stdin" help="Read from stdin"
#USAGE flag "--file <file>" help="Read from file" overrides="--stdin"
$ usage bash flag-overrides.sh
× Invalid usage config
╭─[flag-overrides.sh:2:44]
1 │ flag "--stdin" help="Read from stdin"
2 │ flag "--file <file>" help="Read from file" overrides="--stdin"
· ─────────┬─────────
· ╰── unsupported flag key overrides
╰────
Flag key
overridesis shown in doc, but actually unsupported.usage/docs/spec/reference/flag.md
Line 33 in 95684d8
flag-overrides.sh