Skip to content

Commit 617c50c

Browse files
committed
Added a section to the README about argument ordering
1 parent 770fc9e commit 617c50c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,13 @@ newlines"
3333
```bash
3434
-aih # Equivalent to -a -i -h
3535
-dav 4 # Equivalent to -d -a -v 4
36-
```
36+
```
37+
38+
## Argument Order
39+
40+
The order the arguments are passed on the command line makes a difference
41+
42+
### Examples
43+
44+
* Calling `my-script.sh -f first -f last` will cause `${args["f"]}` to have the value `last`
45+
* Calling `my-script.sh -g 345 -g` will mean cause `${args["g"]}` to be blank

0 commit comments

Comments
 (0)