Skip to content

Commit

Permalink
Merge pull request #83 from Pennycook/version-option
Browse files Browse the repository at this point in the history
Add --version option
  • Loading branch information
Pennycook committed Mar 18, 2024
2 parents 8b1efde + 0dd9ee7 commit 4a369a7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bin/codebasin
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ def guess_project_name(config_path):
def main():
# Read command-line arguments
parser = argparse.ArgumentParser(
description="Code Base Investigator v" + str(version),
description="Code Base Investigator " + str(version),
)
parser.add_argument(
"--version",
action="version",
version=f"Code Base Investigator {version}",
help="Display version information and exit.",
)
deprecated_args = parser.add_argument_group("deprecated options")
deprecated_args.add_argument(
Expand Down

0 comments on commit 4a369a7

Please sign in to comment.