Skip to content

Commit d7c9a79

Browse files
committed
refine usage of --
1 parent 46b93aa commit d7c9a79

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

plan.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ whether or not it matches a known argument. (This is a widely used convention. S
4343
```bash
4444
./command.py input.txt --flag # flag = True
4545
./command.py input.txt -- --flag # args = ("--flag",)
46+
47+
./command.py input.txt arg1 --unknown option # args = ( "arg1" ); kwargs = { "unknown" : "option" }
48+
./command.py input.txt -- arg1 --unknown option # args = ( "arg1", "--unknown", "option" )
4649
```
4750

4851
This feature will not disrupt explicitly declared flags/options.

0 commit comments

Comments
 (0)