From 0e98e3e3c17be9abf38bbbc397a8db706e464bee Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Jul 22 2011 18:33:42 +0000 Subject: Update `help.sh' and `help_getOptions.sh': - Remove support for `--style' and `--order' options. They are configuration properties now and must be changed inside the configuration file, not on the command-line. --- diff --git a/Scripts/Functions/Help/help.sh b/Scripts/Functions/Help/help.sh index 4490be5..d82d025 100755 --- a/Scripts/Functions/Help/help.sh +++ b/Scripts/Functions/Help/help.sh @@ -37,22 +37,6 @@ function help { # documentation backed used to perform documentation actions. local FLAG_BACKEND='texinfo' - # Initialize the style flag (`--style'). This option lets you to - # create chapters and sections in predefined ways. By default, - # both chapter and section names are printed with each word - # capitalized (e.g., `cap-each-word'). Other values to this option - # are `cap-first-only' and `directory'. - local FLAG_STYLE='cap-each-word' - - # Initialize the sort flag (`--sort'). This option controls the - # order used to build entries inside section menus. Possible - # arguments to this option are `ordered', `reversed', `created'. - # From these three values `created' is used by default (i.e., new - # menu entries are added as last menu entry.). Notice that, once - # you've sorted the menu, it is hard to sort the list back to - # former creation orders. Go sorted or not sorted at all. - local FLAG_SORT='created' - # Initialize manual's language. local MANUAL_L10N=$(cli_getCurrentLocale) diff --git a/Scripts/Functions/Help/help_getOptions.sh b/Scripts/Functions/Help/help_getOptions.sh index ae518db..1c791f9 100755 --- a/Scripts/Functions/Help/help_getOptions.sh +++ b/Scripts/Functions/Help/help_getOptions.sh @@ -30,7 +30,7 @@ function help_getOptions { local ARGSS="" # Define long options we want to support. - local ARGSL="quiet,answer-yes,dont-commit-changes,backend:,read,search:,edit,update,copy,delete,rename,style:,sort:" + local ARGSL="quiet,answer-yes,dont-commit-changes,backend:,read,search:,edit,update,copy,delete,rename" # Parse arguments using getopt(1) command parser. cli_parseArguments @@ -104,16 +104,6 @@ function help_getOptions { shift 1 ;; - --style ) - FLAG_STYLE="$2" - shift 2 - ;; - - --sort ) - FLAG_SORT="$2" - shift 2 - ;; - -- ) # Remove the `--' argument from the list of arguments # in order for processing non-option arguments