autospec: fix for the options requiring an argument

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2012-11-13 23:33:02 +01:00
parent 093aa4676c
commit 8eee8ae037

View File

@ -134,7 +134,8 @@ deprecated option"" \`-r|--colorize': "$"use \`--colors' instead"
# for backward compatibility
color_scheme="default" ;;
--colors)
read_arg color_scheme "$@" || shift ;;
read_arg color_scheme "$@" ||
{ shift; args[${#args[*]}]="$1"; } ;;
-h|--help)
let "print_help = 1" ;;
-V|--version)