f5b626 Update cli.sh to add long option support as in --update-headings.

Authored and Committed by areguera 14 years ago
    Update cli.sh to add long option support as in --update-headings.
    Specifically, update cli.sh to let the less sign - be inside options, as
    the one illustrated above.
    
    
        
Scripts/Bash/Functions/cli.sh CHANGED
@@ -49,7 +49,7 @@ function cli {
49
49
# Define option name (OPTIONNAM), and option value (OPTIONVAL)
50
50
# variables passed as second argument to the command line
51
51
# interface when the format is `--option' without the value part.
52
- elif [[ "$2" =~ '^-{1,2}[a-z]+=?$' ]];then
52
+ elif [[ "$2" =~ '^-{1,2}[a-z-]+=?$' ]];then
53
53
54
54
# Define option name passed in the second argument.
55
55
OPTIONNAM=$(echo "$2" | cut -d = -f1)