Patch group of option : types must be callable not a string
This commit is contained in:
@ -13,14 +13,14 @@ def __addInputOption(optionManager):
|
||||
action="store", dest="obi:skip",
|
||||
metavar='<N>',
|
||||
default=None,
|
||||
type='int',
|
||||
type=int,
|
||||
help="skip the N first sequences")
|
||||
|
||||
group.add_argument('--only',
|
||||
action="store", dest="obi:only",
|
||||
metavar='<N>',
|
||||
default=None,
|
||||
type='int',
|
||||
type=int,
|
||||
help="treat only N sequences")
|
||||
|
||||
|
||||
@ -115,19 +115,19 @@ def __addTabularInputOption(optionManager):
|
||||
group.add_argument('--sep',
|
||||
action="store", dest="obi:sep",
|
||||
default=None,
|
||||
type="bytes",
|
||||
type=bytes,
|
||||
help="Column separator")
|
||||
|
||||
group.add_argument('--dec',
|
||||
action="store", dest="obi:dec",
|
||||
default=b".",
|
||||
type="bytes",
|
||||
type=bytes,
|
||||
help="Decimal separator")
|
||||
|
||||
group.add_argument('--na-string',
|
||||
action="store", dest="obi:nastring",
|
||||
default=b"NA",
|
||||
type="bytes",
|
||||
type=bytes,
|
||||
help="String associated to Non Available (NA) values")
|
||||
|
||||
group.add_argument('--strip-white',
|
||||
@ -143,10 +143,10 @@ def __addTabularInputOption(optionManager):
|
||||
group.add_argument('--comment-char',
|
||||
action="store", dest="obi:commentchar",
|
||||
default=b"#",
|
||||
type="bytes",
|
||||
type=bytes,
|
||||
help="Lines starting by this char are considered as comment")
|
||||
|
||||
def addMinimalOption(optionManager):
|
||||
def addMinimalInputOption(optionManager):
|
||||
__addInputOption(optionManager)
|
||||
|
||||
def addSequenceInputOption(optionManager):
|
||||
|
Reference in New Issue
Block a user