ess / belafonte

Jump in the command line with the master of CLIpso (yet another CLI command suite library, which is basically usable right now, but needs much better documentation)
MIT License
5 stars 1 forks source link

App doesn't always return an integer #11

Closed ess closed 8 years ago

ess commented 8 years ago

So, with the run pattern that we have, App#execute! _must_ always return an integer (0 for success, >0 for failure). As it stands now, That isn't always guaranteed to be the case, and that breaks the basic contract of the whole damn thing.

Need to figure out a way to ensure that this always happens, Additionally, caveats need to be added to the documentation to explain that if the app uses Kernel.exit, we're not responsible for the app's exit status.