]> git.seodisparate.com - SimpleArchiver/commitdiff
Update help text
authorStephen Seo <seo.disparate@gmail.com>
Tue, 24 Dec 2024 01:55:54 +0000 (10:55 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Tue, 24 Dec 2024 01:55:54 +0000 (10:55 +0900)
README.md
src/parser.c

index b41c1f43c41c19b07421988cd91562dca824eac6..aeaad551685d9dab868337806c596faf996b03da 100644 (file)
--- a/README.md
+++ b/README.md
@@ -34,6 +34,16 @@ API calls.
     --chunk-min-size <bytes> : v1 file format minimum chunk size (default 4194304 or 4MiB)
     --no-pre-sort-files : do NOT pre-sort files by size (by default enabled so that the first file is the largest)
     --no-preserve-empty-dirs : do NOT preserve empty dirs (only for file format 2 and onwards)
+    --force-uid <uid> : Force set UID on archive creation/extraction
+      On archive creation, sets UID for all files/dirs in the archive.
+      On archive extraction, sets UID for all files/dirs only if EUID is 0.
+    --force-gid <gid> : Force set GID on archive creation/extraction
+      On archive creation, sets GID for all files/dirs in the archive.
+      On archive extraction, sets GID for all files/dirs only if EUID is 0.
+    --force-file-permissions <3-octal-values> : Force set permissions for files on archive creation/extraction
+      Must be three octal characters like "755" or "440"
+    --force-dir-permissions <3-octal-values> : Force set permissions for directories on archive creation/extraction
+      Must be three octal characters like "755" or "440"
     -- : specifies remaining arguments are files to archive/extract
     If creating archive file, remaining args specify files to archive.
     If extracting archive file, remaining args specify files to extract.
index d46e6036e2008f4032cd402affed20ce7274853b..6a9abadbe9a66729e65b03250e9f5667ddcc444e 100644 (file)
@@ -195,8 +195,16 @@ void simple_archiver_print_usage(void) {
           " format 2 and onwards)\n");
   fprintf(stderr,
           "--force-uid <uid> : Force set UID on archive creation/extraction\n");
+  fprintf(stderr,
+          "  On archive creation, sets UID for all files/dirs in the archive.\n"
+          "  On archive extraction, sets UID for all files/dirs only if EUID is"
+          " 0.\n");
   fprintf(stderr,
           "--force-gid <gid> : Force set GID on archive creation/extraction\n");
+  fprintf(stderr,
+          "  On archive creation, sets GID for all files/dirs in the archive.\n"
+          "  On archive extraction, sets GID for all files/dirs only if EUID is"
+          " 0.\n");
   fprintf(stderr,
           "--force-file-permissions <3-octal-values> : Force set permissions "
           "for files on archive creation/extraction\n"