]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Rename --print-config to --show-config
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 31 Mar 2019 19:25:32 +0000 (21:25 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 31 Mar 2019 19:31:39 +0000 (21:31 +0200)
“--show-*” will be the human-readable variant and “--print-*” the
machine-parsable variant.

doc/MANUAL.adoc
src/ccache.c

index 5ba92ff3438998cf32f1ca28f403f2663ffc136e..43dd86fd5d95a5d0b09cd340a52c0e62ec9becfa 100644 (file)
@@ -143,19 +143,21 @@ compiler options apply and you should refer to the compiler's documentation.
     stored in a configuration file in the cache directory and applies to all
     future compilations.
 
-*`-p, --print-config`*::
-
-    Print current configuration options and from where they originate
-    (environment variable, configuration file or compile-time default).
-
 *`-o, --set-config`*=_KEY=VALUE_::
 
     Set configuration option _KEY_ to _VALUE_. See
     <<_configuration,CONFIGURATION>> for more information.
 
+*`-p, --show-config`*::
+
+    Print current configuration options and from where they originate
+    (environment variable, configuration file or compile-time default) in
+    human-readable format.
+
 *`-s, --show-stats`*::
 
-    Print the current statistics summary for the cache.
+    Print a summary of configuration and statistics counters in human-readable
+    format.
 
 *`-V, --version`*::
 
index 0e28f3a92e161825d289847961427ec74810cf46..5a3f0cda74cd8a4fcd191df5ea0c3a7fe9157cc5 100644 (file)
@@ -70,6 +70,8 @@ static const char USAGE_TEXT[] =
        "    -M, --max-size=SIZE       set maximum size of cache to SIZE (use 0 for no\n"
        "                              limit); available suffixes: k, M, G, T (decimal)\n"
        "                              and Ki, Mi, Gi, Ti (binary); default suffix: G\n"
+       "    -p, --show-config         show current configuration options in\n"
+       "                              human-readable format\n"
        "    -s, --show-stats          show summary of configuration and statistics\n"
        "                              counters in human-readable format\n"
        "    -z, --zero-stats          zero statistics counters\n"
@@ -80,7 +82,6 @@ static const char USAGE_TEXT[] =
        "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"
-       "    -p, --print-config        print current configuration options\n"
        "    -o, --set-config=K=V      set configuration item K to value V\n"
        "\n"
        "See also <https://ccache.samba.org>.\n";
@@ -3816,8 +3817,8 @@ ccache_main_options(int argc, char *argv[])
                {"help",          no_argument,       0, 'h'},
                {"max-files",     required_argument, 0, 'F'},
                {"max-size",      required_argument, 0, 'M'},
-               {"print-config",  no_argument,       0, 'p'},
                {"set-config",    required_argument, 0, 'o'},
+               {"show-config",   no_argument,       0, 'p'},
                {"show-stats",    no_argument,       0, 's'},
                {"version",       no_argument,       0, 'V'},
                {"zero-stats",    no_argument,       0, 'z'},
@@ -3932,7 +3933,7 @@ ccache_main_options(int argc, char *argv[])
                }
                break;
 
-               case 'p': // --print-config
+               case 'p': // --show-config
                        initialize();
                        conf_print_items(conf, configuration_printer, stdout);
                        break;