Usage help: "Inherited options" heading might be confusing in some contexts

Open Beginner friendly
#239 1 comment 0 reactions 0 assignees View on GitHub

@Sinkleberg is already working on this.

Since Nov 7, 2026.

  • #240 by @Sinkleberg — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
62/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Active
Tech stack
cli, clojure
Domain
cli

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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from babashka/cli

All issues in babashka/cli

Similar issues

More Clojure issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.