Python: correctly flagged some mandatory options as required
This commit is contained in:
@ -35,12 +35,14 @@ def addOptions(parser):
|
|||||||
action="store", dest="ecopcr:primer1",
|
action="store", dest="ecopcr:primer1",
|
||||||
metavar='<PRIMER>',
|
metavar='<PRIMER>',
|
||||||
type=str,
|
type=str,
|
||||||
|
required=True,
|
||||||
help="Forward primer, length must be less than or equal to 32")
|
help="Forward primer, length must be less than or equal to 32")
|
||||||
|
|
||||||
group.add_argument('--primer2', '-R',
|
group.add_argument('--primer2', '-R',
|
||||||
action="store", dest="ecopcr:primer2",
|
action="store", dest="ecopcr:primer2",
|
||||||
metavar='<PRIMER>',
|
metavar='<PRIMER>',
|
||||||
type=str,
|
type=str,
|
||||||
|
required=True,
|
||||||
help="Reverse primer, length must be less than or equal to 32")
|
help="Reverse primer, length must be less than or equal to 32")
|
||||||
|
|
||||||
group.add_argument('--error', '-e',
|
group.add_argument('--error', '-e',
|
||||||
|
@ -42,6 +42,7 @@ def addOptions(parser):
|
|||||||
metavar="<URI>",
|
metavar="<URI>",
|
||||||
type=str,
|
type=str,
|
||||||
default=None,
|
default=None,
|
||||||
|
required=True,
|
||||||
help="URI to the view containing the samples definition (with tags, primers, sample names,...).\n"
|
help="URI to the view containing the samples definition (with tags, primers, sample names,...).\n"
|
||||||
"\nWarning: primer lengths must be less than or equal to 32")
|
"\nWarning: primer lengths must be less than or equal to 32")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user