This commit is contained in:
2013-06-27 00:02:40 +02:00
parent f1d2dec645
commit f6747efe1c

View File

@@ -9,9 +9,9 @@
# $ has-argument help h "-t none -h" # $ has-argument help h "-t none -h"
# > returns 0 # > 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() { has-argument() {
local long short args arg next_arg local long short
long="--$1" long="--$1"
short="-$2" short="-$2"