From 62195c4d7d7c987fe45bf55b931025b2a06776c1 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Tue, 8 Oct 2024 10:55:24 +0900 Subject: [PATCH] Update README.md, usage text --- README.md | 4 ++-- src/parser.c | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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");