From 119d6dbf87dbf7c8f68ce43da04b0b4b617c31e3 Mon Sep 17 00:00:00 2001 From: Dominic Ricottone Date: Fri, 16 Sep 2022 16:02:20 -0500 Subject: [PATCH] Helptext updates The more honest description of these programs is [OPTIONS] before PROGRAM. Options like quiet and verbose do behave differently if they follow. --- core/whichcat | 2 +- core/whiched | 4 ++-- core/whichhead | 2 +- core/whichvi | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/whichcat b/core/whichcat index c33595f..1400510 100755 --- a/core/whichcat +++ b/core/whichcat @@ -4,7 +4,7 @@ name="whichcat" version="1.1" help_message=$(/usr/bin/cat <<-EOF Print all lines from a program to the terminal - Usage: whichcat [PROGRAM ..] [OPTIONS] + Usage: whichcat [OPTIONS] [PROGRAM ..] Options: -h, --help print this message -q, --quiet suppress error messages diff --git a/core/whiched b/core/whiched index 6e1e8d4..3ac9338 100755 --- a/core/whiched +++ b/core/whiched @@ -4,7 +4,7 @@ name="whiched" version="1.2" help_message=$(/usr/bin/cat <<-EOF Open a program with your editor - Usage: whiched PROGRAM [OPTIONS] + Usage: whiched [OPTIONS] PROGRAM Options: -h, --help print this message -q, --quiet suppress error messages @@ -48,7 +48,7 @@ done # if have not exited, no program was specified if [ "$quiet" -eq 0 ]; then - (>&2 /usr/bin/printf "Usage: whiched PROGRAM [OPTIONS]\n") + (>&2 /usr/bin/printf "Usage: whiched [OPTIONS] PROGRAM\n") exit 1 fi diff --git a/core/whichhead b/core/whichhead index 18b6824..7f2d69e 100755 --- a/core/whichhead +++ b/core/whichhead @@ -4,7 +4,7 @@ name="whichhead" version="1.1" read -r -d '' help_message <<-EOF Print the first 10 lines from a program - Usage: whichhead [PROGRAM ..] [OPTIONS] + Usage: whichhead [OPTIONS] [PROGRAM ..] Options: -h, --help print this message -n N, --number N print the first N lines (Default: 10) diff --git a/core/whichvi b/core/whichvi index ec0ac19..156071e 100755 --- a/core/whichvi +++ b/core/whichvi @@ -4,7 +4,7 @@ name="whichvi" version="1.2" help_message=$(/usr/bin/cat <<-EOF Open a program with your visual editor - Usage: whichvi PROGRAM [OPTIONS] + Usage: whichvi [OPTIONS] PROGRAM Options: -h, --help print this message -q, --quiet suppress error messages @@ -47,7 +47,7 @@ for arg; do done if [ "$quiet" -eq 0 ]; then - (>&2 /usr/bin/printf "Usage: whichvi PROGRAM [OPTIONS]\n") + (>&2 /usr/bin/printf "Usage: whichvi [OPTIONS] PROGRAM\n") exit 1 fi -- 2.45.2