Skip to content

Commit

Permalink
Merge pull request #80 from toroc/fixLoadIssue
Browse files Browse the repository at this point in the history
Fix issue with argument parser not recognizing that load should take …
  • Loading branch information
charleso authored Oct 27, 2017
2 parents b67bd87 + da2a3da commit 9db2037
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion git_cc/gitcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:])
Expand Down

0 comments on commit 9db2037

Please sign in to comment.