]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Improve documentation of --evict-older-than
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 26 Jul 2020 18:19:45 +0000 (20:19 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 26 Jul 2020 18:26:13 +0000 (20:26 +0200)
doc/MANUAL.adoc
src/ccache.cpp

index c4bbad56f577952014ee6c96f52c8c795e89cc56..b6f973146d0cb3d7d6e47a5052c8afd6048a162a 100644 (file)
@@ -94,15 +94,10 @@ Common options
     Clear the entire cache, removing all cached files, but keeping the
     configuration file.
 
-*`--evict-older-than`* _NUM_::
-
-    This is another cleanup mechanism (independent of max_files and max_size).
-    It instructs ccache to perform cleanup based on age of the stored files.
-    The value _NUM_ is duration and means any cache entry older than it from CURRENT_TIME
-    should be deleted. _NUM_ should be an unsigned number with a suffix:
-    d(ays)/s(econds).
-    This cleanup can be performed from the cli with this option only. During the
-    cleanup max_files/max_size will not be taken into consideration.
+*`--evict-older-than`* _AGE_::
+
+    Remove files older than _AGE_ from the cache. _AGE_ should be an unsigned
+    integer with a `d` (days) or `s` (seconds) suffix.
 
 *`-h`*, *`--help`*::
 
index 4e8df4fb69570efbe882977940ec8796ab0abda1..7e23c5201a06ad232059a90418611b2ff96b1737 100644 (file)
@@ -85,42 +85,40 @@ static const char USAGE_TEXT[] =
     compiler [compiler options]          (via symbolic link)
 
 Common options:
-    -c, --cleanup             delete old files and recalculate size counters
-                              (normally not needed as this is done
-                              automatically)
-    -C, --clear               clear the cache completely (except configuration)
-        --evict-older-than N  delete files older than N (days/seconds) (this will not
-                              take max_files, max_size into consideration).
-                              N should be an unsigned number with a suffix:
-                              d(ays)/s(econds).
-    -F, --max-files NUM       set maximum number of files in cache to NUM (use 0
-                              for no limit)
-    -M, --max-size SIZE       set maximum size of cache to SIZE (use 0 for no
-                              limit); available suffixes: k, M, G, T (decimal)
-                              and Ki, Mi, Gi, Ti (binary); default suffix: G
-    -X, --recompress LEVEL    recompress the cache to LEVEL (integer level or
-                              "uncompressed")
-    -o, --set-config KEY=VAL  set configuration item KEY to value VAL
-    -x, --show-compression    show compression statistics
-    -p, --show-config         show current configuration options in
-                              human-readable format
-    -s, --show-stats          show summary of configuration and statistics
-                              counters in human-readable format
-    -z, --zero-stats          zero statistics counters
-
-    -h, --help                print this help text
-    -V, --version             print version and copyright information
+    -c, --cleanup              delete old files and recalculate size counters
+                               (normally not needed as this is done
+                               automatically)
+    -C, --clear                clear the cache completely (except configuration)
+        --evict-older-than AGE remove files older than AGE (unsigned integer
+                               with a d (days) or s (seconds) suffix)
+    -F, --max-files NUM        set maximum number of files in cache to NUM (use
+                               0 for no limit)
+    -M, --max-size SIZE        set maximum size of cache to SIZE (use 0 for no
+                               limit); available suffixes: k, M, G, T (decimal)
+                               and Ki, Mi, Gi, Ti (binary); default suffix: G
+    -X, --recompress LEVEL     recompress the cache to LEVEL (integer level or
+                               "uncompressed")
+    -o, --set-config KEY=VAL   set configuration item KEY to value VAL
+    -x, --show-compression     show compression statistics
+    -p, --show-config          show current configuration options in
+                               human-readable format
+    -s, --show-stats           show summary of configuration and statistics
+                               counters in human-readable format
+    -z, --zero-stats           zero statistics counters
+
+    -h, --help                 print this help text
+    -V, --version              print version and copyright information
 
 Options for scripting or debugging:
-        --dump-manifest PATH  dump manifest file at PATH in text format
-        --dump-result PATH    dump result file at PATH in text format
-        --extract-result PATH extract data stored in result file at PATH to the
-                              current working directory
-    -k, --get-config KEY      print the value of configuration key KEY
-        --hash-file PATH      print the hash (160 bit BLAKE3) of the file at
-                              PATH
-        --print-stats         print statistics counter IDs and corresponding
-                              values in machine-parsable format
+        --dump-manifest PATH   dump manifest file at PATH in text format
+        --dump-result PATH     dump result file at PATH in text format
+        --extract-result PATH  extract data stored in result file at PATH to the
+                               current working directory
+    -k, --get-config KEY       print the value of configuration key KEY
+        --hash-file PATH       print the hash (160 bit BLAKE3) of the file at
+                               PATH
+        --print-stats          print statistics counter IDs and corresponding
+                               values in machine-parsable format
 
 See also <https://ccache.dev>.
 )";