Browse Source

Changed how available commands and available discriminators are listed to improve readability

karasz/new-early
Alejandro Mery 17 years ago
parent
commit
11c1781ddb
2 changed files with 3 additions and 5 deletions
  1. +1
    -4
      lib/sde-wrapper-command.in
  2. +2
    -1
      lib/sde-wrapper-discriminator.in

+ 1
- 4
lib/sde-wrapper-command.in

@ -30,10 +30,7 @@ sde_wrapper_command_help_list() {
desc=$( sde_wrapper_desc "$command" )
aliases=$( sde_wrapper_aliases "$command" )
echo -e "\t* $name${aliases:+\t(${aliases})}"
if [ -n "$desc" ]; then
echo -e "\t\t$desc"
fi
printf "%15s%s%s\n" "$name" "${desc:+ $desc}" "${aliases:+ (Alias: ${aliases// /,})}"
done
}

+ 2
- 1
lib/sde-wrapper-discriminator.in

@ -33,7 +33,8 @@ sde_wrapper_discriminator_help() {
name=$( sde_wrapper_name "$toy" )
desc=$( sde_wrapper_desc "$toy" )
aliases=$( sde_wrapper_aliases "$toy" )
echo " $name${desc:+ $desc}${aliases:+ (Alias: ${aliases// /,})}"
printf "%15s%s%s\n" "$name" "${desc:+ $desc}" "${aliases:+ (Alias: ${aliases// /,})}"
done
cat <<-EOT

Loading…
Cancel
Save