From: Stephen Seo Date: Mon, 27 Jan 2025 11:14:14 +0000 (+0900) Subject: Update README.md, fix text about --prefix X-Git-Tag: 1.12^2~7 X-Git-Url: https://git.seodisparate.com/stephenseo/LD54_Box_Survival?a=commitdiff_plain;h=beef1dbd77f80e80b42abc5594b69ac539067c32;p=SimpleArchiver Update README.md, fix text about --prefix --- 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");