From beef1dbd77f80e80b42abc5594b69ac539067c32 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Mon, 27 Jan 2025 20:14:14 +0900 Subject: [PATCH] Update README.md, fix text about --prefix --- README.md | 1 + src/parser.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 31013c5..43cc9eb 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ API calls. Use "-f -" to work on stdout when creating archive or stdin when reading archive NOTICE: "-f" is not affected by "-C"! -C : Change current working directory before archiving/extracting + --prefix : set prefix for archived/extracted paths ("/" will be appended to the end if missing) --compressor : requires --decompressor and cmd must use stdin/stdout --decompressor : requires --compressor and cmd must use stdin/stdout Specifying "--decompressor" when extracting overrides archive file's stored decompressor cmd diff --git a/src/parser.c b/src/parser.c index 8897eef..6761086 100644 --- a/src/parser.c +++ b/src/parser.c @@ -159,8 +159,8 @@ void simple_archiver_print_usage(void) { "-C : Change current working directory before " "archiving/extracting\n"); fprintf(stderr, - "--prefix : set prefix for archived/extracted paths (do not" - "forget \"/\" if the prefix is a directory)\n"); + "--prefix : set prefix for archived/extracted paths (\"/\" " + "will be appended to the end if missing)\n"); fprintf(stderr, "--compressor : requires --decompressor and cmd " "must use stdin/stdout\n"); -- 2.49.0