Skip to content

Instantly share code, notes, and snippets.

@x56
Created September 13, 2015 23:29
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 x56/24d5d1b033867eb32592 to your computer and use it in GitHub Desktop.
Save x56/24d5d1b033867eb32592 to your computer and use it in GitHub Desktop.
Python argparse crash PoC
#!/usr/bin/env python
#
# usage: ./argparse_empty_mutually_exclusive_group_crash.py blah
import argparse
parser = argparse.ArgumentParser()
mut_ex_group = parser.add_mutually_exclusive_group()
parser.parse_args()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment