]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Document the --hash-file option
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 1 Apr 2019 19:07:07 +0000 (21:07 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 1 Apr 2019 19:07:07 +0000 (21:07 +0200)
doc/MANUAL.adoc
doc/NEWS.adoc
src/ccache.c

index 304b11cc60f35990098dfe4a290007be9e5a1a14..5c6cc4452edeb64d7b096433c2fa0984906ed290 100644 (file)
@@ -122,9 +122,14 @@ compiler options apply and you should refer to the compiler's documentation.
 
 *`-k, --get-config`*=_KEY_::
 
-    Get the value of configuration option _KEY_. See
+    Print the value of configuration option _KEY_. See
     <<_configuration,CONFIGURATION>> for more information.
 
+*`--hash-file`*=_PATH_::
+
+    Print the hash (in format `<MD4>-<size>`) of the file at PATH. This is only
+    useful when debugging ccache and its behavior.
+
 *`-h, --help`*::
 
     Print an options summary page.
index ba930c4603d4909f47ba654d86d2d87b80afc6a0..67587c56ec3fb2ddcfdde40c61cc05188282e60b 100644 (file)
@@ -38,8 +38,8 @@ Changes
 
 * Rearranged command-line options into sections in the help text.
 
-* Documented the previously undocumented `--dump-manifest` option (only useful
-  for debugging ccache itself).
+* Documented the previously undocumented `--dump-manifest` and `--hash-file`
+  options (only useful for debugging ccache itself).
 
 * Added missing documentation for the command-line option `-k/--get-config`
   added in ccache 3.5.
index 9f8165c4470b889143ea6476b97120b2631d1c86..f6562a89bbf1ac5c071e7e382e73715089284576 100644 (file)
@@ -81,7 +81,8 @@ static const char USAGE_TEXT[] =
        "\n"
        "Options for scripting or debugging:\n"
        "        --dump-manifest=PATH  dump manifest file at PATH in text format\n"
-       "    -k, --get-config=K        get the value of configuration key K\n"
+       "    -k, --get-config=K        print the value of configuration key K\n"
+       "        --hash-file=PATH      print the hash (<MD4>-<size>) of the file at PATH\n"
        "        --print-stats         print statistics counter IDs and corresponding\n"
        "                              values in machine-parsable format\n"
        "    -o, --set-config=K=V      set configuration item K to value V\n"