Do not allow abbreviated arguments

This commit is contained in:
Zac Hatfield-Dodds
2019-06-25 13:51:33 +10:00
parent 4f57d40a43
commit d72fb73fa0
9 changed files with 55 additions and 11 deletions

View File

@@ -4,7 +4,7 @@ import pathlib
HERE = pathlib.Path(__file__).parent
TEST_CONTENT = (HERE / "template_test.py").read_bytes()
parser = argparse.ArgumentParser()
parser = argparse.ArgumentParser(allow_abbrev=False)
parser.add_argument("numbers", nargs="*", type=int)