We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the context in which I'm using argparse, it would be helpful if I could set an option to not exit when using --help or when the parsing fails.
--help
The text was updated successfully, but these errors were encountered:
To not exit when using --help you can override the action of the help option:
parser:add_help { action = function() print(parser:get_help()) end }
To not exit when parsing fails you can use :pparse() instead of :parse().
:pparse()
:parse()
Sorry, something went wrong.
You can use string.byte(io.read()) to require the user to press enter if that helps.
string.byte(io.read())
No branches or pull requests
In the context in which I'm using argparse, it would be helpful if I could set an option to not exit when using
--help
or when the parsing fails.The text was updated successfully, but these errors were encountered: