diff --git a/mc b/mc index d233823..a2c5ec3 100755 --- a/mc +++ b/mc @@ -83,11 +83,14 @@ function usage() { printf "Backup directory can be changed from default ~/mc-mc_backup/ by using 'export MY_MC_BACKUP_DIR='\n\n" printf "Positional arguments will fill the JSON objects with values from left to right.\n\n" printf "COMMANDS:\n" + + local command for command in "${!commands[@]}"; do local endpoint method body read -r endpoint method body <<<"${commands[${command}]}" echo -e "\t ${command} ${body}" | sed 's/[":\{\}]//g' |sed 's/%s//g'| sed 's/[,]/ /g' done + printf "\n" }