Permalink
Browse files
Fix undefined name: short_flag --> short_name * 2 (#75)
- Loading branch information...
Showing
with
2 additions
and
2 deletions.
-
+2
−2
core/args.py
|
|
@@ -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