Commit d941326
committed
Fix parsing of boolean config options, such as minimal_uploads.
`store_true` for argparse doesn't actually look at value, only at presence,so
`--option=false` is the same as `--option` and `--option=true`.
`store` only stores strings, so tests like `if minimal` would succeed for
`--minimal-uploads=false`.1 parent 079ec6a commit d941326
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
273 | 277 | | |
274 | 278 | | |
275 | 279 | | |
| |||
475 | 479 | | |
476 | 480 | | |
477 | 481 | | |
478 | | - | |
| 482 | + | |
479 | 483 | | |
480 | 484 | | |
481 | 485 | | |
| |||
562 | 566 | | |
563 | 567 | | |
564 | 568 | | |
565 | | - | |
| 569 | + | |
| 570 | + | |
566 | 571 | | |
567 | 572 | | |
568 | 573 | | |
| |||
0 commit comments