skygragon / leetcode-cli

A cli tool to enjoy leetcode!
MIT License
3.65k stars 458 forks source link

Exit codes for console commands? #160

Open Melorian opened 5 years ago

Melorian commented 5 years ago

Hey, folks! Just checked this library, and it is really awesome, but there is huge lack of exit codes for each command execute. If you want to use this in some other bash scripts, you can't normally check exit code on error or on success, so there is no way to react on different system messages, even with grep on output text (because you will have some problem with user inputs).

How do you think, is this worth to be add here?