From eff08f98b5fce237ce2a6dfbef1763f61846d21d Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Sep 19 2012 17:18:56 +0000 Subject: Update `Functions/Tuneup/tuneup_getOptions.sh' file. --- diff --git a/Scripts/Bash/Functions/Tuneup/tuneup_getOptions.sh b/Scripts/Bash/Functions/Tuneup/tuneup_getOptions.sh index 596fb6c..425996b 100755 --- a/Scripts/Bash/Functions/Tuneup/tuneup_getOptions.sh +++ b/Scripts/Bash/Functions/Tuneup/tuneup_getOptions.sh @@ -29,9 +29,9 @@ function tuneup_getOptions { local ARGSS="" # Define long options we want to support. - local ARGSL="filter:,quiet,answer-yes" + local ARGSL="filter:,quiet,answer-yes,commit-changes" - # Redefine ARGUMENTS variable using getopt output. + # Redefine ARGUMENTS using getopt(1) command parser. cli_parseArguments # Redefine positional parameters using ARGUMENTS variable. @@ -57,6 +57,11 @@ function tuneup_getOptions { shift 1 ;; + --answer-yes ) + FLAG_COMMIT_CHANGES="true" + shift 1 + ;; + -- ) # Remove the `--' argument from the list of arguments # in order for processing non-option arguments @@ -76,11 +81,4 @@ function tuneup_getOptions { # Redefine ARGUMENTS variable using current positional parameters. cli_parseArgumentsReDef "$@" - # Verify non-option arguments passed to command-line. If there - # isn't any, redefine the ARGUMENTS variable to use the current - # location the functionality was called from. - if [[ $ARGUMENTS == '' ]];then - ARGUMENTS=${PWD} - fi - }