Commit 2a748ed
committed
Only force prog=cwltool for the cwl-runner alias (#1535)
Per review feedback: an unconditional prog="cwltool" would leak into
downstream tools that reuse cwltool.argparser.arg_parser() as their base
parser (e.g. Calrissian), changing their --help/usage program name.
Scope the override to the actual invocation name: set prog="cwltool"
only when invoked as the generic "cwl-runner" alias, otherwise leave it
None so argparse's basename default is preserved. Toil and Arvados are
unaffected either way (they build their own parsers). Added a test
asserting a downstream invocation name is preserved.1 parent 9a588df commit 2a748ed
2 files changed
Lines changed: 18 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
93 | 98 | | |
94 | 99 | | |
95 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
291 | 301 | | |
292 | 302 | | |
293 | 303 | | |
| |||
0 commit comments