From 186c0b9c06597c02c7cdcea59cf8cb9405a6dd46 Mon Sep 17 00:00:00 2001 From: Chenxiong Qi Date: Dec 01 2016 09:46:37 +0000 Subject: Specific help of --release for fedpkg Since --release deprecates --dist, this is also relative to original --dist issues, so mark this patch to fix bug 1054440. Resolves: rhbz#1054440 Signed-off-by: Chenxiong Qi --- diff --git a/fedpkg/cli.py b/fedpkg/cli.py index 5fd2217..d01d179 100644 --- a/fedpkg/cli.py +++ b/fedpkg/cli.py @@ -26,6 +26,14 @@ class fedpkgClient(cliClient): super(fedpkgClient, self).__init__(config, name) self.setup_fed_subparsers() + def setup_argparser(self): + super(fedpkgClient, self).setup_argparser() + + opt_release = self.parser._option_string_actions['--release'] + opt_release.help = 'Override the discovered release, e.g. f25, which has to match ' \ + 'the remote branch name created in package repository. ' \ + 'Particularly, use master to build RPMs for rawhide.' + def setup_fed_subparsers(self): """Register the fedora specific targets"""