Skip to content

Commit c7a3900

Browse files
committed
fix arg reading
Signed-off-by: Zen <[email protected]>
1 parent fe58dea commit c7a3900

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "pycpio"
7-
version = "0.9.1"
7+
version = "0.9.2"
88
authors = [
99
{ name="Desultory", email="[email protected]" },
1010
]

src/pycpio/main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def main():
2929
kwargs = get_kwargs_from_args(args, logger=logger)
3030

3131
c = PyCPIO(**kwargs)
32-
if args.input:
32+
if 'input' in args:
3333
c.read_cpio_file(Path(args.input))
3434

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

52-
if args.name:
52+
if 'name' in args:
5353
cmdargs['name'] = args.name
5454

55-
if args.absolute:
55+
if 'absolute' in args:
5656
cmdargs['absolute'] = args.absolute
5757

58-
if args.recursive:
58+
if 'recursive' in args:
5959
c.append_recursive(**cmdargs)
6060
else:
6161
c.append_cpio(**cmdargs)

0 commit comments

Comments
 (0)