Skip to content

Commit

Permalink
Improve CLI validations
Browse files Browse the repository at this point in the history
  • Loading branch information
Tranquility2 committed Apr 9, 2024
1 parent bd73f79 commit 13c0867
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xls_updater/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
from xls_updater.app import convert_xls_to_xlsx


@click.command()
@click.argument("src_file_path", type=click.Path(exists=True, path_type=pathlib.Path))
@click.group(invoke_without_command=True, no_args_is_help=True)
@click.version_option()
@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."""
convert_xls_to_xlsx(src_file_path)

0 comments on commit 13c0867

Please sign in to comment.