Enhance options printing

This commit is contained in:
Tortue Torche 2019-08-11 00:15:15 -04:00 committed by Tortue Torche
parent 55b45769d3
commit c615ef737f

2
psu
View File

@ -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