Commit 36f6a22
committed
Simplify retrieval of help message and prevent thread-unsafe behavior
The `print_help` method from the `argparse` module was previously
used, followed by a thread-unsafe redirect of stdout. This was
removed and replaced with the use of the `format_help` method,
which outputs a string containing the needed help message in a much
better way.1 parent 750e207 commit 36f6a22
1 file changed
+1
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | | - | |
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
| |||
343 | 341 | | |
344 | 342 | | |
345 | 343 | | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
| 344 | + | |
354 | 345 | | |
355 | 346 | | |
356 | 347 | | |
0 commit comments