Skip to content

Commit

Permalink
Add a --version option to the CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
athos-ribeiro committed Apr 21, 2024
1 parent 5cb660b commit 5dbb175
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions changes/7.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A new --version option was added to display the current lppa version
1 change: 1 addition & 0 deletions lppa/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def info(args):

def run():
parser = argparse.ArgumentParser(description=lppa.constants.CLI_DESCRIPTION)
parser.add_argument('--version', action='version', version=lppa.__version__)

subparsers = parser.add_subparsers(help='sub-command help')

Expand Down

0 comments on commit 5dbb175

Please sign in to comment.