Skip to content

Commit

Permalink
fix: command example in --help option
Browse files Browse the repository at this point in the history
  • Loading branch information
LuqueDaniel committed Jan 22, 2021
1 parent 1e12843 commit 80353e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lnmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ def symlink_create(
help="Overwrite thesymbolic links if exist.",
)
@cli.option("--verbose", is_flag=True, help="Enables verbose mode.")
@cli.version_option(version="1.0.3", prog_name="lnmc")
@cli.version_option(version="1.0.5", prog_name="lnmc")
def lnmc(yaml_file: str, src: str, dst: str, rewrite: bool, verbose: bool) -> None:
"""Allows to create symbolic link in batches from a YAML file and
consolidate them in a specific directory.
The files, directories and sub-directories that are going to be targeted to
create the symbolic links are specified in a yaml file.
$ lnmc directories.yaml ~/destination_directory source_directory/
$ lnmc directories.yaml source_directory/ destination_directory/
"""
if verbose:
cli.echo(f"Reading {cli.style(yaml_file, fg='green')} file.")
Expand All @@ -95,7 +95,7 @@ def lnmc(yaml_file: str, src: str, dst: str, rewrite: bool, verbose: bool) -> No
subdirs = dirs[directory]

for item in subdirs:
if hasattr(item, "name"):
if isinstance(item, pathlib.Path):
item = item.name

symlink_create(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setuptools.setup(
name="lnmc",
version="1.0.4",
version="1.0.5",
license="AGPLv3+",
description="Allows to create symbolic link in batches from a YAML file "
"and consolidate them in a specific directory.",
Expand Down

0 comments on commit 80353e9

Please sign in to comment.