From 0d0afb05242f40af886d19a2e3db3b3d9cc994c8 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Sep 19 2012 17:19:12 +0000 Subject: Update `Functions/Help/help_getOptions.sh' file. --- diff --git a/Scripts/Bash/Functions/Help/help_getOptions.sh b/Scripts/Bash/Functions/Help/help_getOptions.sh index ab26ed2..2fdd6ed 100755 --- a/Scripts/Bash/Functions/Help/help_getOptions.sh +++ b/Scripts/Bash/Functions/Help/help_getOptions.sh @@ -30,9 +30,9 @@ function help_getOptions { local ARGSS="" # Define long options we want to support. - local ARGSL="quiet,answer-yes,read,search:,edit,update-output,update-structure,copy,delete,rename" + local ARGSL="quiet,answer-yes,read,search:,edit,update-output,update-structure,copy,delete,rename,commit-changes" - # Parse arguments using getopt(1) command parser. + # Redefine ARGUMENTS using getopt(1) command parser. cli_parseArguments # Reset positional parameters using output from (getopt) argument @@ -94,6 +94,11 @@ function help_getOptions { shift 1 ;; + --commit-changes ) + FLAG_COMMIT_CHANGES="true" + shift 1 + ;; + -- ) # Remove the `--' argument from the list of arguments # in order for processing non-option arguments