Commit f0fd049
committed
Improve boolean flags handling.
When a function has a keyword argument with a boolean default, the parser now
automatically creates the `store_true` or `store_false` action(if not action
was provided in the `arguments` keyword definition.
Fixes #5
Signed-off-by: Pedro Algarvio <[email protected]>1 parent c2d6284 commit f0fd049
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
| 380 | + | |
381 | 381 | | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
382 | 391 | | |
383 | 392 | | |
384 | 393 | | |
| |||
0 commit comments