From c8a133b07747e83a5005cfb1110b35fce40b6d9f Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Oct 06 2012 04:52:07 +0000 Subject: Update `Functions/Render/render_getOptions.sh' file. --- diff --git a/Scripts/Bash/Functions/Render/render_getOptions.sh b/Scripts/Bash/Functions/Render/render_getOptions.sh index e3fd683..bad142d 100755 --- a/Scripts/Bash/Functions/Render/render_getOptions.sh +++ b/Scripts/Bash/Functions/Render/render_getOptions.sh @@ -26,10 +26,10 @@ function render_getOptions { # Define short options we want to support. - local ARGSS="q" + local ARGSS="q,h" # Define long options we want to support. - local ARGSL="quiet,filter:,answer-yes,dont-dirspecific,releasever:,basearch:,post-rendition:,last-rendition:,theme-model:,with-brands,sync-changes" + local ARGSL="quiet,help,filter:,answer-yes,dont-dirspecific,releasever:,basearch:,post-rendition:,last-rendition:,theme-model:,with-brands,sync-changes" # Redefine ARGUMENTS using getopt(1) command parser. cli_parseArguments @@ -42,9 +42,10 @@ function render_getOptions { case "$1" in - --filter ) - FLAG_FILTER="$2" - shift 2 + -h | --help ) + ${CLI_NAME} help --read trunk/Scripts/Bash/Functions/Render + shift 1 + exit ;; -q | --quiet ) @@ -52,6 +53,11 @@ function render_getOptions { shift 1 ;; + --filter ) + FLAG_FILTER="$2" + shift 2 + ;; + --answer-yes ) FLAG_ANSWER="true" shift 1