summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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() {