summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-06-02 22:00:06 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-06-02 22:00:06 -0600
commit2aaeacf352f8bb5daca360dde02d0d2c73a75d32 (patch)
treecb4e31240ab1aaacbca50f5f0f572aefe7ab8593
parent606b0a937527e43cf952c41cb8970fca7db3a55b (diff)
pbs-help: include the second line of the -h output for each command.
-rwxr-xr-xpbs-help5
1 files changed, 4 insertions, 1 deletions
diff --git a/pbs-help b/pbs-help
index 66d77a3..c2a753f 100755
--- a/pbs-help
+++ b/pbs-help
@@ -13,7 +13,10 @@ master_usage() {
echo "Usage: ${stem} COMMAND [OPTIONS]"
echo
echo "Commands:"
- list_commands | sed 's/^/ /'
+ list_commands | while read -r cmd; do
+ help="$("$stem-$cmd" -h|sed -n 2p)"
+ printf ' %-20s %s\n' "$cmd" "$help"
+ done
}
help_usage() {