Usage help: "Inherited options" heading might be confusing in some contexts
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 62/100
Research direction
The payload does not name the file that renders the usage text, so start by searching the repository for the "Inherited options" string in the help-output code. Check how the heading is chosen, and whether a root-only case can show "Global options" instead while nested commands keep the current wording. Done means the root-only help output shows the new heading, and the existing help-output tests are updated to match. Confirm with the maintainer first, since the issue asks whether the change makes sense.
Written by the indexing model from the issue text.
Description
Issue
The "Inherited options" heading in usage text is technically correct.
It describes the way bb cli shares options downward in the command tree.
But maybe we can avoid exposing this complex concept to innocent cli users for simpler scenarios.
Scenario
Take the common case where we only have inherited options from the root.
An example usage help from bbin:
$ bbin install --help
Version: 0.2.5
Usage: bbin install [options] <source>
Install a script
Arguments:
<source> URL/file/project to install
Options:
--as Executable name to give installed script
--git/url Git URL of project (by default, inferred from project)
--git/sha Git sha for --git/url
--git/tag Git tag for --git/url
--latest-sha Use latest sha for --git/url
--mvn/version Maven version for project
--local/root Local directory for project
-T, --tool Install script using tool mode
--ns-default :ns-default to be used for the installed script for --tool mode only
--main-opts Edn for :main-opts to use for the installed script
--dry-run Give a data view of what will happen without installing
--edn Emit output in edn format
Inherited options:
--color Use color/styling in output (--no-color to disable)
--plain Use plain output (no color, no table decorations)
Run "bbin --help" for global options.
See https://github.com/babashka/bbin README for example usages.
I think a user would be better served by a heading of "Global options:" for this scenario.
Whatcha think?
Does this make sense?
- Dominant language
- Clojure
- Stars
- 305
- Forks
- 24
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- No 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 babashka/cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
`args->opts` does not handle positional args after `--`May be free again A pull request for this issue was closed without being merged. Open
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
nextjournal/clerk#830 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
IOP tokens release blocker team qa team qa autotests WG adoption
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
penpot/penpot#13540 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
izhangzhihao/intellij-rainbow-brackets#2903 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100