From 325f2b44e7f35bc2c5752f37cb20b06d66118686 Mon Sep 17 00:00:00 2001 From: Dan Bornstein Date: Wed, 4 Oct 2023 16:46:16 -0700 Subject: [PATCH] Drop `${help}` variable. No longer needed. --- scripts/lib/bashy-core/helpy/print-usage | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/scripts/lib/bashy-core/helpy/print-usage b/scripts/lib/bashy-core/helpy/print-usage index 65a8ede..98dddde 100755 --- a/scripts/lib/bashy-core/helpy/print-usage +++ b/scripts/lib/bashy-core/helpy/print-usage @@ -16,15 +16,14 @@ define-usage --with-help $' Prints a usage message. This does the following to the given : - * 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`. @@ -65,12 +64,6 @@ name ${cmdName} ; -help - \${name} [--help | -h] - - Displays this message. -; - stderr --verbose= --quiet -q :: \`none\` \`error\` \`warn\` \`all\` How much to print to stderr. \`--quiet\` / \`-q\` is equivalent to