Closed rhoskal closed 8 years ago
partially fixed... "sessions -h" throws new error
Traceback (most recent call last):
File "crispyd.py", line 60, in
When the SystemExit is raised, None is returned. Therefore, check
if pargs is None:
return
right before you check pargs.interact.
Absolutely! thanks. I also had to force a parser.print_help() when a user types just "sessions" w/ no args. For some odd reasons the argparse class wasn't behaving like the others. this class has frustrated me so much.
prints help successfully but then immediately closes. that works for command line arg when running a program first from the terminal, but that doesn't work when we need it to keep looping. Maybe update custom Argparser class to override help()?