Can anyone point me at how the `--pants-config-fil...
# general
a
Can anyone point me at how the
--pants-config-files
option is handled? My normal strategy of grepping for the
_
-version of the
-
flag name (
rg pants_config_files
) shows it’s only used for invalidation globs and in a test, which doesn’t sound right…
a
I would take a look at
OptionsBootstrapper.get_config_file_paths()
in
src/python/pants/option/options_bootstrapper.py
! we manually parse args for it as seen in that method, hence the indirection
also, i generally use
rg pants.config.files
as it requires no shift key and matches things like hyphens or underscores
a
Thanks!
a
sometimes i use
rg -i pants.?config.?files
if i'm looking for class names or something
also of use is
--smart-case
a
Oh wow, those are some interesting semantics!
If pants.ini happens to exist, always use it, regardless of whether the flag was specified as replacing or additive
a
yes, so maybe this comment is wrong:
# This exactly mirrors the logic applied in Option to all regular options.
a
😄