From f98b49b35614418fbd55f0d1aaa5ae787669cea7 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Sep 19 2012 17:23:15 +0000 Subject: Update `Functions/Svn/svn_getOptions.sh' file. --- diff --git a/Scripts/Bash/Functions/Svn/svn_getOptions.sh b/Scripts/Bash/Functions/Svn/svn_getOptions.sh index d8acd40..ff0be35 100644 --- a/Scripts/Bash/Functions/Svn/svn_getOptions.sh +++ b/Scripts/Bash/Functions/Svn/svn_getOptions.sh @@ -29,9 +29,9 @@ function svn_getOptions { local ARGSS="" # Define long options we want to support. - local ARGSL="sync,update,commit,is-versioned" + local ARGSL="sync,update,commit,is-versioned,commit-changes" - # Redefine ARGUMENTS variable using getopt output. + # Redefine ARGUMENTS using getopt(1) command parser. cli_parseArguments # Redefine positional parameters using ARGUMENTS variable. @@ -62,6 +62,12 @@ function svn_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 @@ -81,11 +87,4 @@ function svn_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 - }