-h should be a global flag for --help
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 62/100
Research direction
Start at the CLI entry point and global flag handling, using the existing --help behavior as the reference. Test fastly -h alongside fastly --help; done means the short flag displays the same global help text without conflicting with subcommands.
Written by the indexing model from the issue text.
Description
Is your feature request related to a problem? Please describe.
It's common and conventional for CLI tools to accept -h as a shortcut for invoking --help globally.
But we don't currently support it:
GLOBAL FLAGS
--help Show context-sensitive help.
-d, --accept-defaults Accept default options for all interactive prompts
apart from Yes/No confirmations
-y, --auto-yes Answer yes automatically to all Yes/No confirmations.
This may suppress security warnings
--debug-mode Print API request and response details (NOTE:
can disrupt the normal CLI flow output formatting)
--enable-sso Enable Single-Sign On (SSO) for current profile
execution (see also: 'fastly sso')
-i, --non-interactive Do not prompt for user input - suitable for CI
processes. Equivalent to --accept-defaults and
--auto-yes
-o, --profile=PROFILE Switch account profile for single command execution
(see also: 'fastly profile switch')
-q, --quiet Silence all output except direct command output.
This won't prevent interactive prompts (see:
--accept-defaults, --auto-yes, --non-interactive)
-t, --token=TOKEN Fastly API token (or via FASTLY_API_TOKEN)
-v, --verbose Verbose logging
Perhaps there are -h conflicts with subcommands?
Describe the solution you'd like
I'd like fastly -h to work globally as a shortcut for showing help text.
Describe alternatives you've considered
n/a
Additional context
n/a
- Dominant language
- Go
- Stars
- 164
- Forks
- 80
- Avg merge
- 22h 44m
- Merged PRs (30d)
- 21
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from fastly/cli
-
bug feature request
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
fastly/cli#1709 · 4 comments ·
Maintainers usually reply within 1 day
-
feature request
Difficulty 3/5 1-2 days Newbie friendliness 52/100
Maintainers usually reply within 1 day
-
feature request
Difficulty 4/5 3-5 days Newbie friendliness 38/100
fastly/cli#1790 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
feature request
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Maintainers usually reply within 1 day
-
feature request
Difficulty 3/5 1-2 days Newbie friendliness 55/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
resend/resend-skills#144 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
cloudnativelabs/kube-router#2189 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
🕷️ bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sysadminsmedia/homebox#1770 ·
Maintainers usually reply within 2 days