Skip to content

Commit

Permalink
Updated CLI version to acquire version from file
Browse files Browse the repository at this point in the history
  • Loading branch information
Tranquility2 committed Apr 15, 2024
1 parent 79f1789 commit 8f3b08f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xls_updater/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@

import click

from xls_updater.__about__ import __version__
from xls_updater.app import convert_xls_to_xlsx


@click.group(invoke_without_command=True, no_args_is_help=True)
@click.version_option()
@click.version_option(__version__, "-v", "--version", is_flag=True, help="Show the version.")
@click.argument("src_file_path", type=click.Path(exists=True, path_type=pathlib.Path), required=True)
def cli(src_file_path: pathlib.Path) -> None:
"""Convert an xls file to xlsx."""
Expand Down

0 comments on commit 8f3b08f

Please sign in to comment.