Skip to content

Commit

Permalink
fix arg reading
Browse files Browse the repository at this point in the history
Signed-off-by: Zen <z@pyl.onl>
  • Loading branch information
desultory committed Apr 15, 2024
1 parent fe58dea commit c7a3900
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "pycpio"
version = "0.9.1"
version = "0.9.2"
authors = [
{ name="Desultory", email="dev@pyl.onl" },
]
Expand Down
8 changes: 4 additions & 4 deletions src/pycpio/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def main():
kwargs = get_kwargs_from_args(args, logger=logger)

c = PyCPIO(**kwargs)
if args.input:
if 'input' in args:
c.read_cpio_file(Path(args.input))

if 'rm' in args:
Expand All @@ -49,13 +49,13 @@ def main():
relative = args.relative if args.relative else None
cmdargs = {'relative': relative, 'path': Path(args.append)}

if args.name:
if 'name' in args:
cmdargs['name'] = args.name

if args.absolute:
if 'absolute' in args:
cmdargs['absolute'] = args.absolute

if args.recursive:
if 'recursive' in args:
c.append_recursive(**cmdargs)
else:
c.append_cpio(**cmdargs)
Expand Down

0 comments on commit c7a3900

Please sign in to comment.