]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
adding loglevel option - not respected yet, though
authorMathias Klette <mathias.klette@profitbricks.com>
Mon, 10 Dec 2012 14:33:37 +0000 (15:33 +0100)
committerMathias Klette <mathias.klette@profitbricks.com>
Mon, 10 Dec 2012 14:33:37 +0000 (15:33 +0100)
debian_build.py

index a026b4df3d577c2c7ad0057fe2421d77e0568bce..d873fd32821feaa11cf101c768eb26485247147e 100755 (executable)
@@ -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()