Permalink
Browse files

Merge pull request #80 from toroc/fixLoadIssue

Fix issue with argument parser not recognizing that load should take …
  • Loading branch information...
charleso committed Oct 27, 2017
2 parents b67bd87 + da2a3da commit 9db20378537ac92b96bad58d5e3d511a696884f3
Showing with 3 additions and 1 deletion.
  1. +3 −1 git_cc/gitcc.py
View
@@ -38,8 +38,10 @@ def invoke(cmd, args):
'help': cmd.ARGS[name],
'dest': name,
}
if not default:
if default is False:
option['action'] = "store_true"
elif default is None:
option['action'] = "store"
name = name.replace('_', '-')
parser.add_option('--' + name, **option)
(options, args) = parser.parse_args(args[1:])

0 comments on commit 9db2037

Please sign in to comment.