From 2aaeacf352f8bb5daca360dde02d0d2c73a75d32 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 2 Jun 2013 22:00:06 -0600 Subject: pbs-help: include the second line of the -h output for each command. --- pbs-help | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() { -- cgit v1.2.3-54-g00ecf