parent
4e812a0f3c
commit
e867f46c16
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue