Skip to content

Commit

Permalink
Drop ${help} variable.
Browse files Browse the repository at this point in the history
No longer needed.
  • Loading branch information
danfuzz committed Oct 4, 2023
1 parent 2a52345 commit 325f2b4
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions scripts/lib/bashy-core/helpy/print-usage
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@ define-usage --with-help $'
Prints a usage message. This does the following to the given <message>:
* Trim away empty lines at the start and end of the string.
* Trim away whitespace from the start of lines, based on the indentation of
* Trims away empty lines at the start and end of the string.
* Trims away whitespace from the start of lines, based on the indentation of
the first not-just-whitespace line.
* Substitute variables (see below) in the form `$${name}`.
* Substitute `$$$$` with a literal `$$`.)
* Print everything to `stderr`.
* Substitutes variables (see below) in the form `$${name}`.
* Substitutes `$$$$` with a literal `$$`.)
* Prints everything to `stderr`.
Available variables:
`$${help}` -- The standard blurb about the usual help option `--help` / `-h`
`$${name}` -- The name of the command, as passed via `--name`.
`$${stderr}` -- The standard blurb about the usual stderr control options
`--verbose` and `--quiet` / `-q`.
Expand Down Expand Up @@ -65,12 +64,6 @@ name
${cmdName}
;
help
\${name} [--help | -h]
Displays this message.
;
stderr
--verbose=<level> --quiet -q :: \`none\` \`error\` \`warn\` \`all\`
How much to print to stderr. \`--quiet\` / \`-q\` is equivalent to
Expand Down

0 comments on commit 325f2b4

Please sign in to comment.