]> git.seodisparate.com - SimpleArchiver/commitdiff
Update README.md, fix text about --prefix
authorStephen Seo <seo.disparate@gmail.com>
Mon, 27 Jan 2025 11:14:14 +0000 (20:14 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Mon, 27 Jan 2025 11:15:17 +0000 (20:15 +0900)
README.md
src/parser.c

index 31013c5befd5e94a334d58c6776c4e9a0956061f..43cc9eb629424dbaaca149c7abe33ea8ed4f9d7e 100644 (file)
--- 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 <dir> : Change current working directory before archiving/extracting
+    --prefix <prefix> : set prefix for archived/extracted paths ("/" will be appended to the end if missing)
     --compressor <full_compress_cmd> : requires --decompressor and cmd must use stdin/stdout
     --decompressor <full_decompress_cmd> : requires --compressor and cmd must use stdin/stdout
       Specifying "--decompressor" when extracting overrides archive file's stored decompressor cmd
index 8897eefcf053cbe0c4a52bfc6661f0f9f70ad20e..67610869babff04a684ac824a0c926c0eb38ccf9 100644 (file)
@@ -159,8 +159,8 @@ void simple_archiver_print_usage(void) {
           "-C <dir> : Change current working directory before "
           "archiving/extracting\n");
   fprintf(stderr,
-          "--prefix <prefix> : set prefix for archived/extracted paths (do not"
-          "forget \"/\" if the prefix is a directory)\n");
+          "--prefix <prefix> : set prefix for archived/extracted paths (\"/\" "
+          "will be appended to the end if missing)\n");
   fprintf(stderr,
           "--compressor <full_compress_cmd> : requires --decompressor and cmd "
           "must use stdin/stdout\n");