From c3a29fa2b1a73f1e43e74f3ecefbb0939967691f Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Oct 10 2012 14:20:22 +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 7edbf1c..901bf9a 100644 --- a/Scripts/Bash/Functions/Svn/svn_getOptions.sh +++ b/Scripts/Bash/Functions/Svn/svn_getOptions.sh @@ -26,10 +26,10 @@ function svn_getOptions { # Define short options we want to support. - local ARGSS="" + local ARGSS="h,q" # Define long options we want to support. - local ARGSL="sync,update,commit,is-versioned,get-status" + local ARGSL="help,quiet,sync,update,commit,is-versioned,get-status" # Redefine ARGUMENTS using getopt(1) command parser. cli_parseArguments @@ -42,6 +42,17 @@ function svn_getOptions { case "$1" in + -h | --help ) + ${CLI_NAME} help --read --format="texinfo" trunk/Scripts/Bash/Functions/Svn + shift 1 + exit + ;; + + -q | --quiet ) + FLAG_QUIET="true" + shift 1 + ;; + --sync ) ACTIONNAMS="${ACTIONNAMS} svn_syncroRepoChanges" shift 1 @@ -67,6 +78,11 @@ function svn_getOptions { shift 1 ;; + --copy ) + ACTIONNAMS="${ACTIONNAMS} svn_copyRepoFile" + shift 1 + ;; + -- ) # Remove the `--' argument from the list of arguments # in order for processing non-option arguments