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):
|
def arg(n, t=type(''), dt=None, p=None, h='', dv=default.none, ld=False):
|
||||||
'''convenience function for arguments'''
|
'''convenience function for arguments'''
|
||||||
return Argument(n, type=t, datatype=dt, prompt=p, help=h, default=dv,
|
return Argument(n, type=t, datatype=dt, prompt=p, help=h, default=dv, load_default=ld)
|
||||||
load_default=ld)
|
|
||||||
class Argument(object):
|
class Argument(object):
|
||||||
def __init__(self, name, type=type(""), datatype=None, prompt=None, help='',
|
def __init__(self, name, type=type(""), datatype=None, prompt=None, help='',
|
||||||
default=default.none, load_default=False):
|
default=default.none, load_default=False):
|
||||||
|
|
Loading…
Reference in New Issue