From cc6d9dd6feaad66ed06a6a8c4c6df53111fcf7ba Mon Sep 17 00:00:00 2001 From: Chris Carpita Date: Thu, 9 Oct 2014 11:23:19 -0400 Subject: [PATCH] Separate command doc from option doc --- lib/show/show.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/show/show.sh b/lib/show/show.sh index 546d4f9..bbe5f34 100755 --- a/lib/show/show.sh +++ b/lib/show/show.sh @@ -17,16 +17,21 @@ usage () { echo "$mesg" echo fi - echo "bpkg-show [-Vh] [sources|readme] " + echo "bpkg-show [-Vh]" + echo "bpkg-show " + echo "bpkg-show readme " + echo "bpkg-show sources " echo echo "Show bash package details. You must first run \`bpkg update' to sync the repo locally." echo - echo "Options:" - echo " --help|-h Print this help dialogue" - echo " --version|-V Print version and exit" + echo "Commands:" echo " readme Print package README.md file, if available, suppressing other output" echo " sources Print all sources listed in package.json scripts, in order. This" echo " option suppresses other output and prints executable bash." + echo + echo "Options:" + echo " --help|-h Print this help dialogue" + echo " --version|-V Print version and exit" } show_package () {