From: Mathias Klette Date: Mon, 10 Dec 2012 14:33:37 +0000 (+0100) Subject: adding loglevel option - not respected yet, though X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=82ee49710b768b407370e22c0358a73fd79341a8;p=profitbricks%2Fjenkins-build-scripts.git adding loglevel option - not respected yet, though --- 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()