f5b626
Update cli.sh to add long option support as in --update-headings.
@@ -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
|
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)
|