diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-02 22:00:06 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-02 22:00:06 -0600 |
commit | 2aaeacf352f8bb5daca360dde02d0d2c73a75d32 (patch) | |
tree | cb4e31240ab1aaacbca50f5f0f572aefe7ab8593 | |
parent | 606b0a937527e43cf952c41cb8970fca7db3a55b (diff) |
pbs-help: include the second line of the -h output for each command.
-rwxr-xr-x | pbs-help | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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() { |