gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject cvs commit: gump/python/gump/document/forrest documenter.py
Date Thu, 22 Apr 2004 20:20:49 GMT
ajack       2004/04/22 13:20:49

  Modified:    python/gump/core commandLine.py
               python/gump/document/forrest documenter.py
  Log:
  Removed commandline handling bug, to allow testing of --debug --xdocs
  
  Revision  Changes    Path
  1.2       +11 -7     gump/python/gump/core/commandLine.py
  
  Index: commandLine.py
  ===================================================================
  RCS file: /home/cvs/gump/python/gump/core/commandLine.py,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- commandLine.py	16 Apr 2004 17:28:41 -0000	1.1
  +++ commandLine.py	22 Apr 2004 20:20:48 -0000	1.2
  @@ -79,42 +79,46 @@
           # 
           # Process global arguments
           #
  +        removers=[]
           for arg in argv:
               if arg in ['-d','--debug']:
  -                argv.remove(arg) 
  +                removers.append(arg) 
                   log.info('Setting log level to DEBUG')
                   self.options.setDebug(1)
                   log.setLevel(logging.DEBUG) 
               elif arg in ['-v','--verbose']: 
  -                argv.remove(arg) 
  +                removers.append(arg) 
                   log.info('Setting log level to VERBOSE')
                   self.options.setVerbose(1)
                   # :TODO: VERBOSE doesn't exist within logging...
                   log.setLevel(logging.DEBUG)  
               elif arg in ['-l','--latest']:
  -                argv.remove(arg)
  +                removers.append(arg)
                   self.options.setCache(0)
                   self.options.setQuick(0)
                   log.info('Absolute Latest [no use of cache, don\'t skip stack]')
               elif arg in ['-D','--dated']:
  -                argv.remove(arg)    
  +                removers.append(arg)    
                   #
                   # Dated means add the date to the log dir...
                   #
                   self.options.setDated(1)                    
                   log.info('Dated Operation (add date to log dir)')
               elif arg in ['-t','--text']:
  -                argv.remove(arg)        
  +                removers.append(arg)        
                   self.options.setText(1)
                   log.info('Use text (not forrest).')
               elif arg in ['-x','--xdocs']:
  -                argv.remove(arg)        
  +                removers.append(arg)        
                   self.options.setXDocs(1)
                   log.info('Output xdocs (do not run forrest).')
               elif arg in ['-t','--template']:
  -                argv.remove(arg)        
  +                removers.append(arg)        
                   self.options.setTemplate(1)
                   log.info('Use template (not forrest).')
  +                
  +        for arg in removers:
  +            argv.remove(arg)
   
           if len(argv)>2 and argv[1] in ['-w','--workspace']:
               self.args.append(argv[2])
  
  
  
  1.13      +2 -0      gump/python/gump/document/forrest/documenter.py
  
  Index: documenter.py
  ===================================================================
  RCS file: /home/cvs/gump/python/gump/document/forrest/documenter.py,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- documenter.py	22 Apr 2004 19:58:08 -0000	1.12
  +++ documenter.py	22 Apr 2004 20:20:49 -0000	1.13
  @@ -246,6 +246,8 @@
           forrestWorkDir=self.getForrestWorkDirectory(workspace)
           logDirectory=workspace.getLogDirectory()
           
  +        log.info('Syncronize work->log, and clean-up...')
  +            
           success=1
           try:
               #
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Mime
View raw message