diff options
author | Guido Günther <agx@sigxcpu.org> | 2009-02-26 11:44:36 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2009-02-26 13:48:29 +0100 |
commit | e3b76103f7e0e238341303e5941e867278594948 (patch) | |
tree | 12f761deda1cfbbe3d853905b325b9642bc044cd /git-dch | |
parent | 660acbe28b4f52f68ae467eb5812897236e8d6e6 (diff) |
simplify boolean option handling
Diffstat (limited to 'git-dch')
-rwxr-xr-x | git-dch | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -287,8 +287,7 @@ def main(argv): help="mark as snapshot build") version_group.add_option("-N", "--new-version", dest="new_version", help="use this as base for the new version number") - version_group.add_config_file_option(option_name="git-author", dest="git_author", action="store_true") - version_group.add_config_file_option(option_name="no-git-author", dest="git_author", action="store_false") + version_group.add_boolean_config_file_option(option_name="git-author", dest="git_author") commit_group.add_config_file_option(option_name="meta", dest="meta", help="parse meta tags in commit messages, default is '%(meta)s'", action="store_true") commit_group.add_config_file_option(option_name="meta-closes", dest="meta_closes", |