This repository was archived by the owner on Jan 23, 2026. It is now read-only.
Commit 88241fc
committed
j: return exit code properly
fixes the bug of j tmt always returning 0
click in standalone_mode=False mode, as we use it in j, will not raise
the click.Exception.Exit but instead return the result as an integer.
this commit looks for the integer, and raisex the exception that
can be caught on the external try block.1 parent ec806a0 commit 88241fc
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
43 | 48 | | |
44 | 49 | | |
45 | 50 | | |
| |||
0 commit comments