Skip to content

Commit 4d34c0a

Browse files
committed
Added examples of the long form with value to the Use section of the README
1 parent c46426d commit 4d34c0a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ fi
2020
# --debug 3
2121
DEBUG_LEVEL="$(argValue "debug")" # 3
2222

23+
# --max-size=1024
24+
MAX_SIZE="$(argValue "max-size")" # 1024
25+
2326
# -R 0
2427
[ "$(argValue "R")" == "0" ] && echo "Recursive depth 0"
2528

@@ -58,6 +61,11 @@ if argExists 'long-argument-name'; then
5861
# Do something awesome
5962
fi
6063

64+
# --protocol=HTTP
65+
if argExists 'protocol'; then
66+
# Do something awesome
67+
fi
68+
6169
# -O 43
6270
argExists 'r' && echo "Found the -O argument"
6371
```

0 commit comments

Comments
 (0)