Skip to content

Commit

Permalink
fixup: ArgumentDefaultsHelpFormatter to automatically print default a…
Browse files Browse the repository at this point in the history
…rg vals
  • Loading branch information
j23414 committed Feb 12, 2024
1 parent 678fa5a commit 5da76d9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ingest/bin/infer-dengue-serotype.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,20 @@

def parse_args():
parser = argparse.ArgumentParser(
description="Dengue specific processing of metadata, infer serotype from virus_tax_id"
description="Dengue specific processing of metadata, infer serotype from virus_tax_id",
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
)
parser.add_argument(
"--virus-tax-id",
type=str,
default="virus_tax_id",
help="Column name containing the NCBI taxon id of the virus serotype, default: virus_tax_id",
help="Column name containing the NCBI taxon id of the virus serotype.",
)
parser.add_argument(
"--out-col",
type=str,
default="ncbi_serotype",
help="Column name to store the inferred serotype, default: ncbi_serotype",
help="Column name to store the inferred serotype.",
)
return parser.parse_args()

Expand Down

0 comments on commit 5da76d9

Please sign in to comment.