fix: clean up formatting on useage output
This commit is contained in:
2
mc
2
mc
@@ -95,7 +95,7 @@ function usage() {
|
|||||||
printf "Positional arguments will fill the JSON objects with values from left to right.\n\n"
|
printf "Positional arguments will fill the JSON objects with values from left to right.\n\n"
|
||||||
printf "COMMANDS:\n"
|
printf "COMMANDS:\n"
|
||||||
for command in "${!commands[@]}"; do
|
for command in "${!commands[@]}"; do
|
||||||
printf "\t ${command} $(rest $(rest ${commands[${command}]}))\n"
|
echo -e "\t ${command} $(rest $(rest ${commands[${command}]}))" | sed 's/[":]//g' |sed 's/%s//g'| sed 's/[,]/ /g'
|
||||||
done
|
done
|
||||||
printf "\n"
|
printf "\n"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user