comparison flagReader.py @ 10:47af95ad83c7

working the refactor still
author catherine@localhost
date Thu, 15 May 2008 12:21:38 -0400
parents f807c5cfa0de
children
comparison
equal deleted inserted replaced
9:f807c5cfa0de 10:47af95ad83c7
5 has been re-implemented as a wrapper around optparse. 5 has been re-implemented as a wrapper around optparse.
6 6
7 print flagReader.FlagSet.parse.__doc__ for usage examples. 7 print flagReader.FlagSet.parse.__doc__ for usage examples.
8 """ 8 """
9 9
10 import re, optparse 10 import re, optparse, warnings
11 warnings.warn("""flagReader has been deprecated. Use optparse instead.""", DeprecationWarning)
11 12
12 class Flag(object): 13 class Flag(object):
13 def __init__(self, name, abbrev=None, nargs=0): 14 def __init__(self, name, abbrev=None, nargs=0):
14 """Flag(name, abbrev=None, nargs=0) : Defines a flag. 15 """Flag(name, abbrev=None, nargs=0) : Defines a flag.
15 16