From: Stephen Seo Date: Tue, 8 Oct 2024 01:55:24 +0000 (+0900) Subject: Update README.md, usage text X-Git-Tag: 1.0~1^2 X-Git-Url: https://git.seodisparate.com/stephenseo/static/static/git-logo.png?a=commitdiff_plain;h=62195c4d7d7c987fe45bf55b931025b2a06776c1;p=SimpleArchiver Update README.md, usage text --- diff --git a/README.md b/README.md index 7d4a7af..ec456c3 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,8 @@ 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 - --compressor : requires --decompressor - --decompressor : requires --compressor + --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 --overwrite-create : allows overwriting an archive file --overwrite-extract : allows overwriting when extracting diff --git a/src/parser.c b/src/parser.c index dd6383a..31a9ea8 100644 --- a/src/parser.c +++ b/src/parser.c @@ -156,9 +156,11 @@ void simple_archiver_print_usage(void) { "-C : Change current working directory before " "archiving/extracting\n"); fprintf(stderr, - "--compressor : requires --decompressor\n"); + "--compressor : requires --decompressor and cmd " + "must use stdin/stdout\n"); fprintf(stderr, - "--decompressor : requires --compressor\n"); + "--decompressor : requires --compressor and " + "cmd must use stdin/stdout\n"); fprintf(stderr, " Specifying \"--decompressor\" when extracting overrides archive " "file's stored decompressor cmd\n");