From 2d84986794d7edaaaca53d3e24390429a1bd327b Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Tue, 10 Jan 2012 20:31:53 +0100 Subject: gbp-post-tag-push: Add --verbose option to ease debugging --- examples/gbp-posttag-push | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'examples') diff --git a/examples/gbp-posttag-push b/examples/gbp-posttag-push index 521d235..1203983 100755 --- a/examples/gbp-posttag-push +++ b/examples/gbp-posttag-push @@ -16,16 +16,21 @@ # # Options: # -d: dry-run +# -u: push upstream branch too, if not on remote already +# --verbose: verbose command output + import ConfigParser import os import subprocess import sys +import gbp.log from gbp.config import GbpOptionParser from gbp.deb.git import DebianGitRepository + class Env(object): pass @@ -92,9 +97,12 @@ def main(argv): dest="upstream_branch") parser.add_config_file_option(option_name="upstream-tag", dest="upstream_tag") + parser.add_option("--verbose", action="store_true", dest="verbose", + default=False, help="verbose command execution") (options, args) = parser.parse_args() + gbp.log.setup(False, options.verbose) repo = DebianGitRepository('.') if options.dryrun: -- cgit v1.2.3