Merge "Fix bash autocompletion of "rally task sla_check""

This commit is contained in:
Jenkins 2015-03-09 22:56:48 +00:00 committed by Gerrit Code Review
commit ed5d5baba3
2 changed files with 7 additions and 5 deletions

View File

@ -50,8 +50,9 @@ _rally()
for OPT in ${!OPTS[*]} ; do for OPT in ${!OPTS[*]} ; do
CMDSUB=(${OPT//_/ }) CMD=${OPT%%_*}
SUBCOMMANDS[${CMDSUB[0]}]+="${CMDSUB[1]} " CMDSUB=${OPT#*_}
SUBCOMMANDS[${CMD}]+="${CMDSUB} "
done done
COMMANDS="${!SUBCOMMANDS[*]}" COMMANDS="${!SUBCOMMANDS[*]}"

View File

@ -445,8 +445,9 @@ _rally()
%(data)s %(data)s
for OPT in ${!OPTS[*]} ; do for OPT in ${!OPTS[*]} ; do
CMDSUB=(${OPT//_/ }) CMD=${OPT%%%%_*}
SUBCOMMANDS[${CMDSUB[0]}]+="${CMDSUB[1]} " CMDSUB=${OPT#*_}
SUBCOMMANDS[${CMD}]+="${CMDSUB} "
done done
COMMANDS="${!SUBCOMMANDS[*]}" COMMANDS="${!SUBCOMMANDS[*]}"