Skip to content

Commit 66bb11b

Browse files
committed
Small update
1 parent c835403 commit 66bb11b

File tree

2 files changed

+4
-512
lines changed

2 files changed

+4
-512
lines changed

archivefile.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ def _build_argparser() -> argparse.ArgumentParser:
100100
)
101101
p.add_argument("-m", "--formatver", default=__file_format_dict__["format_ver"], help="Specify the format version.")
102102
p.add_argument("-l", "--list", action="store_true", help="List files included in the archive file.")
103+
p.add_argument("-n", "--new", action="store_true", help="Use with list to get alt listing style.")
103104

104105
# Compression options
105106
p.add_argument("-P", "--compression", default="auto", help="Specify the compression method to use for concatenation.")
@@ -398,7 +399,7 @@ def main(argv: Optional[list[str]] = None) -> int:
398399
getargs.insecretkey,
399400
False,
400401
getargs.verbose,
401-
False,
402+
getargs.new,
402403
False,
403404
)
404405
else:
@@ -413,7 +414,7 @@ def main(argv: Optional[list[str]] = None) -> int:
413414
fnamedict,
414415
getargs.insecretkey,
415416
getargs.verbose,
416-
False,
417+
getargs.new,
417418
False,
418419
)
419420
if not tmpout:
@@ -430,7 +431,7 @@ def main(argv: Optional[list[str]] = None) -> int:
430431
getargs.insecretkey,
431432
False,
432433
getargs.verbose,
433-
False,
434+
getargs.new,
434435
False,
435436
)
436437

0 commit comments

Comments
 (0)