You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like Usage returns exit code 0 if it was able to successfully parse args and 1 otherwise. There are two issues here:
It silently convert failed scripts to successful.
It overwrite script exit code 1 with own meaning.
I propose to use some rarely used exit code for arg parsing issues and return script's actual exit code as is (probably makes sense to do the same as other common tools running other tools do - e.g. nice).
It looks like Usage returns exit code 0 if it was able to successfully parse args and 1 otherwise. There are two issues here:
I propose to use some rarely used exit code for arg parsing issues and return script's actual exit code as is (probably makes sense to do the same as other common tools running other tools do - e.g.
nice
).The text was updated successfully, but these errors were encountered: