From f6747efe1c082ede11d59d039dcef8d037800b5e Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Thu, 27 Jun 2013 00:02:40 +0200 Subject: [PATCH] Fix typo --- src/lib/arguments.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/arguments.sh b/src/lib/arguments.sh index 31c58e8..48f5a0f 100644 --- a/src/lib/arguments.sh +++ b/src/lib/arguments.sh @@ -9,9 +9,9 @@ # $ has-argument help h "-t none -h" # > returns 0 # -# Returns 0 and echos value if argument was found, returns 1 otherwise. +# Returns 0 if argument was found, returns 1 otherwise. has-argument() { - local long short args arg next_arg + local long short long="--$1" short="-$2"