Permalink
Browse files

Fix undefined name: short_flag --> short_name * 2 (#75)

  • Loading branch information...
cclauss authored and andychu committed Feb 2, 2018
1 parent 3fd2924 commit e91eb28e313f44d33011811b8009067d13c07f91
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/args.py
View
@@ -376,8 +376,8 @@ def ShortFlag(self, short_name, arg_type=None):
This is very similar to ShortFlag for FlagsAndOptions, except we have
separate arity0 and arity1 dicts.
"""
assert short_name.startswith('-'), short_flag
assert len(short_name) == 2, short_flag
assert short_name.startswith('-'), short_name
assert len(short_name) == 2, short_name
char = short_name[1]
if arg_type is None:

0 comments on commit e91eb28

Please sign in to comment.