Skip to content

Commit

Permalink
Show defaults in script help and normalize arg name
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-graham committed Nov 7, 2024
1 parent edea5b6 commit e551348
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/tlo_publications.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ def write_publications_list(stream, bibliography_data, section_names, backend, s

if __name__ == "__main__":
docs_directory = Path(__file__).parent
parser = argparse.ArgumentParser(description=__doc__)
parser = argparse.ArgumentParser(
description=__doc__, formatter_class=argparse.ArgumentDefaultsHelpFormatter
)
parser.add_argument(
"--bib-file",
type=Path,
Expand All @@ -201,7 +203,7 @@ def write_publications_list(stream, bibliography_data, section_names, backend, s
help="Update BibTeX file at path specified by --bib-file from Zotero group library",
)
parser.add_argument(
"--zotero_group_id",
"--zotero-group-id",
default="5746396",
help="Integer identifier for Zotero group library",
)
Expand Down

0 comments on commit e551348

Please sign in to comment.