]> git.ipfire.org Git - thirdparty/ccache.git/commit
New command-line option -k/--get-config prints the value of a config key
authorGabriel Scherer <gabriel.scherer@gmail.com>
Sun, 10 Jun 2018 10:53:04 +0000 (12:53 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 14 Oct 2018 19:57:51 +0000 (21:57 +0200)
commite67eb20f518a9bf85938ab9cbd36a7f321104014
tree51ae445e30abad6485d8c9eba480ebedaccbc677
parente741c05433ae76eed53bafcce5e43fb2795ab796
New command-line option -k/--get-config prints the value of a config key

We print exactly the value of the configuration setting, rather
than a full item pair "(origin) key = value" as --print-config does.

This is useful for scripting. For example, $(ccache -k cache_dir)
gives the cache directory path.
src/ccache.c
src/conf.c
src/conf.h
unittest/test_conf.c