Created
September 22, 2014 16:16
-
-
Save legnaleurc/550295b7cca785305b24 to your computer and use it in GitHub Desktop.
argparse bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import unicode_literals | |
from __future__ import print_function | |
import argparse | |
a = argparse.ArgumentParser() | |
b = a.add_subparsers(dest='command') | |
b.add_parser('test') | |
c = a.parse_args([]) | |
print(c.command is None) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment