From c615ef737fbbece0ea1d9dece92749cb38b1c1ca Mon Sep 17 00:00:00 2001 From: Tortue Torche Date: Sun, 11 Aug 2019 00:15:15 -0400 Subject: [PATCH] Enhance options printing --- psu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psu b/psu index e203eaa..71757b1 100644 --- a/psu +++ b/psu @@ -1267,7 +1267,7 @@ display_options() { name="${table[1]}" description="${table[2]}" if [ -n "$description" ]; then - row=$(printf "%-${flag_columns}s %-${columns}s %-${columns}s \n" "$flag," "$name" "$description") + row=$(printf "%-${flag_columns}s %-${columns}s %-${columns}s \n" "$(if [ -n "$flag" ]; then echo "$flag,"; fi)" "$name" "$description") echo " $row" fi done