branch : pmacs2
This commit is contained in:
moculus 2009-03-21 19:47:12 +00:00
parent 4e812a0f3c
commit e867f46c16
1 changed files with 1 additions and 2 deletions

View File

@ -9,8 +9,7 @@ class MethodError(Exception):
def arg(n, t=type(''), dt=None, p=None, h='', dv=default.none, ld=False):
'''convenience function for arguments'''
return Argument(n, type=t, datatype=dt, prompt=p, help=h, default=dv,
load_default=ld)
return Argument(n, type=t, datatype=dt, prompt=p, help=h, default=dv, load_default=ld)
class Argument(object):
def __init__(self, name, type=type(""), datatype=None, prompt=None, help='',
default=default.none, load_default=False):