You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by aj...@apache.org on 2004/04/06 19:45:33 UTC

cvs commit: gump/python/gump commandLine.py

ajack       2004/04/06 10:45:33

  Modified:    python/gump/document forrest.py
               python/gump commandLine.py
  Log:
  Added all these options (--template, --xdocs) but forgot to wire them up.
  
  Revision  Changes    Path
  1.133     +1 -1      gump/python/gump/document/forrest.py
  
  Index: forrest.py
  ===================================================================
  RCS file: /home/cvs/gump/python/gump/document/forrest.py,v
  retrieving revision 1.132
  retrieving revision 1.133
  diff -u -r1.132 -r1.133
  --- forrest.py	6 Apr 2004 15:57:11 -0000	1.132
  +++ forrest.py	6 Apr 2004 17:45:33 -0000	1.133
  @@ -284,7 +284,7 @@
           for name in options.__dict__:
               if name.startswith('__') and name.endswith('__'): continue
               method=getattr(options,name)            
  -            # avoid nulls, metadata, and methods other than test*
  +            # avoid nulls, metadata, and methods other than (is|get)*
               if not method: continue
               if isinstance(method,types.TypeType): continue
               if not isinstance(method,types.MethodType): continue
  
  
  
  1.4       +10 -0     gump/python/gump/commandLine.py
  
  Index: commandLine.py
  ===================================================================
  RCS file: /home/cvs/gump/python/gump/commandLine.py,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- commandLine.py	30 Mar 2004 14:40:58 -0000	1.3
  +++ commandLine.py	6 Apr 2004 17:45:33 -0000	1.4
  @@ -71,6 +71,8 @@
                   print " Not relevent to all scripts:"
                   print "  -D,  --dated             Dated log files."
                   print "  -t,  --text              Use text not Forrest."
  +                print "  -T,  --templates         Use temapltes not Forrest."
  +                print "  -X,  --xdocs             Output xdocs, do not run Forrest."
                   
                   print
                   print
  @@ -109,6 +111,14 @@
                   argv.remove(arg)        
                   self.options.setText(1)
                   log.info('Use text (not forrest).')
  +            elif arg in ['-x','--xdocs']:
  +                argv.remove(arg)        
  +                self.options.setXDocs(1)
  +                log.info('Output xdocs (do not run forrest).')
  +            elif arg in ['-t','--template']:
  +                argv.remove(arg)        
  +                self.options.setTemplate(1)
  +                log.info('Use template (not forrest).')
   
           if len(argv)>2 and argv[1] in ['-w','--workspace']:
               self.args.append(argv[2])
  
  
  

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