]> git.ipfire.org Git - thirdparty/ccache.git/commit
feat: Make --config-path and --directory affect whole command line
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 10 Aug 2021 13:32:07 +0000 (15:32 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 10 Aug 2021 16:36:39 +0000 (18:36 +0200)
commit513c83faaafc3a9848cb4492961104e4f4768247
tree859d3a7a1b78305ecf55333d39dd6a1585ee1641
parent2761ebf7f2bd824d25050451e36d49612a494a72
feat: Make --config-path and --directory affect whole command line

Command line options are processed strictly in order, which means that

    ccache -d dir -s

is not the same as

    ccache -s -d dir

which is not very intuitive. There are also planned features where is
doesn’t make sense to have to put “non-command options” before the
“command options”.

Improve this by processing command line options in two passes: first
non-command options and then command options (still in order).
doc/MANUAL.adoc
src/core/mainoptions.cpp