mpeterv / argparse

Feature-rich command line parser for Lua
MIT License
251 stars 43 forks source link

Replace non-portable os.exit() invocations #20

Closed neoxic closed 5 years ago

neoxic commented 5 years ago

Hi mpeterv! Thanks for the great project! Just as a minor note, invocations like os.exit(0) and os.exit(1) are not quite portable on some non-POSIX systems (sic). So... for "greater portability", one might want to use os.exit(true) and os.exit(false) respectively.

neoxic commented 5 years ago

Oops... I just realized there is no support for boolean code in Lua 5.1. Closing...