File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,8 @@ The default value can also be set to an empty string (`argExpected['e']="argumen
6565There is a helper function named ` argValue() ` which takes the name of
6666an argument as its only parameter and returns the value given to the argument.
6767
68- If the argument doesn't have a value or hasn't been passed nothing is returned.
68+ If the argument doesn't have a value or hasn't been passed nothing is returned
69+ unless it's been given a default, in which case the default value will be returned.
6970
7071``` bash
7172# -a 'some text'
103104There is a helper function named ` argExists() ` which takes the name of
104105an argument as its only parameter and returns a boolean.
105106
107+ ` argExist ` will return false if the argument has fallen back to its default value*
108+
106109``` bash
107110# -v
108111if argExists ' v' ; then
You can’t perform that action at this time.
0 commit comments