aboutsummaryrefslogtreecommitdiffstats
path: root/src/argparser.bash
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-06-18 20:37:58 +0200
committerMattias Andrée <maandree@operamail.com>2013-06-18 20:37:58 +0200
commit9873efabfba0bfa0bccc745dbc9eb5749a2022aa (patch)
treee6d853baa90fdb42aa69bf19e88b28bf5a87a72e /src/argparser.bash
parentcomplete bash version (diff)
downloadargparser-9873efabfba0bfa0bccc745dbc9eb5749a2022aa.tar.gz
argparser-9873efabfba0bfa0bccc745dbc9eb5749a2022aa.tar.bz2
argparser-9873efabfba0bfa0bccc745dbc9eb5749a2022aa.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/argparser.bash5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/argparser.bash b/src/argparser.bash
index b50e859..ba9529c 100644
--- a/src/argparser.bash
+++ b/src/argparser.bash
@@ -326,7 +326,7 @@ function args_add_variadic
# Prints a colourful help message
-function help
+function args_help
{
local dash first last maxfirstlen=0 i=0 n help start count lines=() lens=()
local empty=" " line l col index=0 colour
@@ -455,13 +455,14 @@ function help
#
# @param $@:(str) The command line arguments, should exclude the execute file
# @exit Whether no unrecognised option is used
-function parse
+function args_parse
{
local nulqueue=() argqueue=() optqueue=() queue=() opt arg _arg argnull
local dashed=0 tmpdashed=0 get=0 dontget=0 rc=0 i n more std sign type
args_argcount=$#
args_unrecognised_count=0
+ args_arguments=( "$@" )
while [ ! $# = 0 ]; do
while [ ! $# = 0 ]; do