incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1183624 - /incubator/public/trunk/clutch.py
Date Sat, 15 Oct 2011 11:38:54 GMT
Author: sebb
Date: Sat Oct 15 11:38:53 2011
New Revision: 1183624

URL: http://svn.apache.org/viewvc?rev=1183624&view=rev
Log:
Option handling was broken (useState was off by default)

Modified:
    incubator/public/trunk/clutch.py

Modified: incubator/public/trunk/clutch.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch.py?rev=1183624&r1=1183623&r2=1183624&view=diff
==============================================================================
--- incubator/public/trunk/clutch.py (original)
+++ incubator/public/trunk/clutch.py Sat Oct 15 11:38:53 2011
@@ -49,7 +49,6 @@ Note: The 'svn log' queries might only r
 #        - Notation3 or DOAP or RDFa or some such? (not yet)
 #        - python pickle (now happening)
 # FIXME: Parse Robert's "audit" stuff.
-# FIXME: Add option "--verbose".
 # FIXME: Detect if they have SVN repo yet.
 #        - http://svn.apache.org/repos/asf/incubator/* ensure more than ".."
 # FIXME: Similarly with website. Ensure that there is some content length.
@@ -73,22 +72,23 @@ import xml.dom.minidom
 import argparse
 
 parser = argparse.ArgumentParser(description='Gather details about projects currently in
incubation.')
-parser.add_argument('--useState', action='store_true', help='whether to use stored state
(true)')
-parser.add_argument('-v', '--verbose', choices=['debug','info', 'error'], default='info',
help='set verbosity')
+parser.add_argument('--ignoreState',   action='store_true', default='False', help='Ignore
state (default false)')
+parser.add_argument('-v', '--verbose', action='store_true', default='False', help='verbose
mode (default false)')
+parser.add_argument('-q', '--quiet',   action='store_true', default='False', help='quiet
mode (default false)')
 args = parser.parse_args()
 
 # Normal level of info
-optionInfo = args.verbose == 'info' 
+optionInfo = args.quiet != True
 
 # Issue some extra debug information.
-optionVerbose = args.verbose == 'debug'
+optionVerbose = args.verbose == True
 if optionVerbose:
   optionInfo = True
 
 # Use the persistent data to speed operations.
 # Occasionally bad data is cached (e.g. experimenting with developing new code).
 # So need to ignore the cached data and perform all resource availability tests.
-optionUseClutchState = args.useState
+optionUseClutchState = args.ignoreState != True
 
 projects = {} # internal data
 otherIssues = []



---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message