Skip to content

Commit 7f54433

Browse files
author
João Silva
committed
!36 feat(CLI): [#70] Probely CLI '--version' argument Closes #70
1 parent a934580 commit 7f54433

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

probely_cli/cli/commands/parsers.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
OutputEnum,
1111
show_help,
1212
)
13+
from probely_cli.version import __version__
1314

1415

1516
def build_file_parser():
@@ -75,6 +76,9 @@ def build_cli_parser():
7576
description="Welcome to Probely's CLI",
7677
formatter_class=RichHelpFormatter,
7778
)
79+
probely_parser.add_argument(
80+
"-V", "--version", action="version", version=f"%(prog)s {__version__}"
81+
)
7882
probely_parser.set_defaults(
7983
command_handler=show_help,
8084
is_no_action_parser=True,

0 commit comments

Comments
 (0)