From 82ee49710b768b407370e22c0358a73fd79341a8 Mon Sep 17 00:00:00 2001 From: Mathias Klette Date: Mon, 10 Dec 2012 15:33:37 +0100 Subject: [PATCH] adding loglevel option - not respected yet, though --- debian_build.py | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/debian_build.py b/debian_build.py index a026b4d..d873fd3 100755 --- a/debian_build.py +++ b/debian_build.py @@ -185,11 +185,33 @@ def getopts(): usage = '%prog [options]' parser = optparse.OptionParser(usage=usage, version='%prog 0.1') parser.add_option( - '--distribution', - dest='distribution', - choices = ['stable', 'production', 'production-proposed-updates', 'unstable', 'pre-staging', 'staging', 'experimental'], - default='unstable', - help='The pkg distribution. Default: %default' + '--distribution', + dest='distribution', + choices = [ + 'stable', + 'production', + 'production-proposed-updates', + 'unstable', + 'pre-staging', + 'staging', + 'experimental' + ], + default='unstable', + help='The pkg distribution. Default: %default' + ) + parser.add_option( + '--loglevel', + dest='loglevel', + choices = [ + 'DEBUG', + 'INFO', + 'WARN', + 'WARNING', + 'ERROR', + 'CRITICAL' + ], + default='INFO', + help='Loglevel. Default: %default' ) return parser.parse_args() -- 2.39.5