def _show_help(msg=None, parser=None, exit_code=0): """Show the help of the given parser and exits If exit_code is -1, this function will not call sys.exit(). """ tests.printmsg(msg) if parser is not None: parser.print_help() if exit_code > -1: sys.exit(exit_code)
def _show_help(msg=None,parser=None,exit=0): tests.printmsg(msg) if parser is not None: parser.print_help() if exit > -1: sys.exit(exit)