#22865 How do I specify a bundled file as a command line argument?
New discussion created by
aebrahim
This is my use case, I am embedding a configuration file in my pex binary, and I would like to also pass that file in as a command line argument.
For example:
pex_binary(
name="mybinary",
script="mybinary",
dependencies=[
"//configuration:my_configuration_file",
],
include_tools=True,
args=[
"--configuration_file",
some_path_resolver("//configuration:my_configuration_file")
],
)
What's the best way to do this?
pantsbuild/pants