Skip to content

Instantly share code, notes, and snippets.

@mayosuke
Last active August 13, 2018 09:27
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 mayosuke/86a495e42172ede0014a5b8e2aaf2a98 to your computer and use it in GitHub Desktop.
Save mayosuke/86a495e42172ede0014a5b8e2aaf2a98 to your computer and use it in GitHub Desktop.
Patch for argparse.py before Python 3.7
--- /home/ec2-user/anaconda3/lib/python3.6/argparse.py 2018-04-29 16:18:42.000000000 +0000
+++ argparse.py 2018-08-13 02:30:36.317112960 +0000
@@ -1064,6 +1064,7 @@
prog,
parser_class,
dest=SUPPRESS,
+ required=False,
help=None,
metavar=None):
@@ -1077,6 +1078,7 @@
dest=dest,
nargs=PARSER,
choices=self._name_parser_map,
+ required=required,
help=help,
metavar=metavar)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment