Skip to content

Commit d8dbe9a

Browse files
authored
Create README.md
1 parent c527aea commit d8dbe9a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/cli/parse_args/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
- `-o`: simple bool flag `{o: true}`
2+
- `-o="out"`: simple parameter flag `{o: "out"}`
3+
- `-o "out"`: simple parameter flag with space `{o: "out"}`
4+
- `--output`: named bool flag `{output: true}`
5+
- `--output="out"`: named paremeter`{output: 'out'}`
6+
- `--output "out folder"`: named parameter with space `{output: 'out folder'}`
7+
- `--object:a=b`: object `{object: {a: 'b'}}`
8+
- `--object:a="b c"`: object `{object: {a: 'b c'}}`
9+
- `--list=a,b,c`: object `{list: ['a', 'b', 'c']}`
10+
- `--list=a,b,"c d"`: object `{list: ['a', 'b', 'c d']}`

0 commit comments

Comments
 (0)