Commit da50b5c
authored
Move error handling to main function (#13630)
* This makes is easier to call `run_stubtest()` manually, for
example when testing the script - no need to construct
an `ArgumentParser` instance.
* This concentrates argument error handling in the
`main()` function and prevents an unexpected process exit
when calling `run_stubtest()`.1 parent acac58a commit da50b5c
1 file changed
Lines changed: 9 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 34 | + | |
40 | 35 | | |
41 | 36 | | |
42 | 37 | | |
43 | 38 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 39 | + | |
48 | 40 | | |
49 | 41 | | |
50 | 42 | | |
| |||
410 | 402 | | |
411 | 403 | | |
412 | 404 | | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
421 | 412 | | |
422 | 413 | | |
423 | 414 | | |
| |||
0 commit comments