Skip to content

Instantly share code, notes, and snippets.

@jacobcase
Created June 30, 2014 03:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacobcase/61898bdae3cc17b8e060 to your computer and use it in GitHub Desktop.
Save jacobcase/61898bdae3cc17b8e060 to your computer and use it in GitHub Desktop.
NoErrorArgParse = type("NoErrorArgParse", argparse.ArgumentParser.__bases__, copy.deepcopy(dict(argparse.ArgumentParser.__dict__)))
NoErrorArgParse.error = lambda: None
NoErrorArgParse.exit = lambda: None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment