From 841af02eaa45c1b7395d5f4e4711de3c3661c146 Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Fri, 3 Jul 2020 16:36:55 -0400 Subject: Fix single arg upload Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- bh20sequploader/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bh20sequploader/main.py b/bh20sequploader/main.py index c442af0..89c30e8 100644 --- a/bh20sequploader/main.py +++ b/bh20sequploader/main.py @@ -62,7 +62,7 @@ def main(): parser = argparse.ArgumentParser(description='Upload SARS-CoV-19 sequences for analysis') parser.add_argument('metadata', type=argparse.FileType('r'), help='sequence metadata json') parser.add_argument('sequence_p1', type=argparse.FileType('rb'), help='sequence FASTA/FASTQ') - parser.add_argument('sequence_p2', type=argparse.FileType('rb'), default=None, help='sequence FASTQ pair') + parser.add_argument('sequence_p2', type=argparse.FileType('rb'), default=None, nargs='?', help='sequence FASTQ pair') parser.add_argument("--validate", action="store_true", help="Dry run, validate only") args = parser.parse_args() -- cgit v1.2.3