aboutsummaryrefslogtreecommitdiffhomepage
path: root/git-dch
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2009-02-26 11:44:36 +0100
committerGuido Günther <agx@sigxcpu.org>2009-02-26 13:48:29 +0100
commite3b76103f7e0e238341303e5941e867278594948 (patch)
tree12f761deda1cfbbe3d853905b325b9642bc044cd /git-dch
parent660acbe28b4f52f68ae467eb5812897236e8d6e6 (diff)
simplify boolean option handling
Diffstat (limited to 'git-dch')
-rwxr-xr-xgit-dch3
1 files changed, 1 insertions, 2 deletions
diff --git a/git-dch b/git-dch
index 1b0e34d9..4851ea59 100755
--- a/git-dch
+++ b/git-dch
@@ -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",