aboutsummaryrefslogtreecommitdiffstats
path: root/src/test.bash
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-08-18 20:26:29 +0200
committerMattias Andrée <maandree@operamail.com>2013-08-18 20:26:29 +0200
commit665297cd08ee7d52eaa159b743c52428423db912 (patch)
tree8060e6d1b474987d8dd9467093d3cbdf1a3409d0 /src/test.bash
parentissue 4, python version (diff)
downloadargparser-665297cd08ee7d52eaa159b743c52428423db912.tar.gz
argparser-665297cd08ee7d52eaa159b743c52428423db912.tar.bz2
argparser-665297cd08ee7d52eaa159b743c52428423db912.tar.xz
issue 4, bash version
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/test.bash')
-rwxr-xr-xsrc/test.bash10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test.bash b/src/test.bash
index 5840e13..136439c 100755
--- a/src/test.bash
+++ b/src/test.bash
@@ -45,12 +45,12 @@ along with this library. If not, see <http://www.gnu.org/licenses/>.
args_init 'A test for argparser' 'test [options] [files]' "$long" '' 1
-args_add_argumentless 0 'Prints this help message\n(and exits)' -h -? --help
-args_add_argumentless 0 'Prints the text: hello world' --hello
-args_add_argumentless 0 '' ++hidden
+args_add_argumentless '' 0 'Prints this help message\n(and exits)' -h -? --help
+args_add_argumentless '' 0 'Prints the text: hello world' --hello
+args_add_argumentless '' 0 '' ++hidden
-args_add_argumented 0 LINE 'Prints the choosen line' -l --line
-args_add_variadic 0 LINE 'Prints the choosen lines' --l --lines
+args_add_argumented '' 0 LINE 'Prints the choosen line' -l --line
+args_add_variadic '' 0 LINE 'Prints the choosen lines' --l --lines
args_parse "$@"
args_support_alternatives