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.
Activity
p-ouellette commentedon Mar 28, 2019
To not exit when using
--helpyou can override the action of the help option:To not exit when parsing fails you can use
:pparse()instead of:parse().RoboPterodactyl commentedon Aug 13, 2023
You can use
string.byte(io.read())to require the user to press enter if that helps.