[Qa-jenkins-scm] [jenkins.debian.net] 01/03: reproducible: common: turn the distro positional arg into a --distro flag
Mattia Rizzolo
mattia at debian.org
Fri Dec 29 15:25:56 UTC 2017
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch master
in repository jenkins.debian.net.
commit eb1a1b6b7193065660d709e97031c2e615a21457
Author: Mattia Rizzolo <mattia at debian.org>
Date: Fri Dec 29 16:16:59 2017 +0100
reproducible: common: turn the distro positional arg into a --distro flag
having it a positional argument clashes with the remote_scheduler.py
arg parsing as it understands the first scheduler argument as the distro
positional arg.
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
bin/reproducible_common.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index 60abc75..7f15199 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -48,7 +48,7 @@ CONFIG = os.path.join(__location__, 'reproducible.ini')
## command line option parsing
parser = argparse.ArgumentParser()
group = parser.add_mutually_exclusive_group()
-parser.add_argument('distro', help='name of the distribution to work on',
+parser.add_argument('--distro', help='name of the distribution to work on',
default='debian', nargs='?')
group.add_argument("-d", "--debug", action="store_true")
group.add_argument("-q", "--quiet", action="store_true")
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list