/[thuban]/branches/WIP-pyshapelib-bramz/test/runtests.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/test/runtests.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2640 by bh, Thu Jun 30 19:24:45 2005 UTC revision 2642 by bh, Fri Jul 1 20:49:04 2005 UTC
# Line 74  def main(): Line 74  def main():
74    
75      verbosity = 1      verbosity = 1
76    
77      opts, args = getopt.getopt(sys.argv[1:], 'v', ['verbose'])      opts, args = getopt.getopt(sys.argv[1:], 'v',
78                                   ['verbose', "internal-encoding="])
79      for optchar, value in opts:      for optchar, value in opts:
80          if optchar in ("-v", "--verbose"):          if optchar in ("-v", "--verbose"):
81              verbosity = 2              verbosity = 2
82            elif optchar == "--internal-encoding":
83                Thuban.set_internal_encoding(value)
84          else:          else:
85              print>>sys.stderr, "Unknown option", optchar              print>>sys.stderr, "Unknown option", optchar
86    

Legend:
Removed from v.2640  
changed lines
  Added in v.2642

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26