Closed wdbaruni closed 1 month ago
Yeah we can't have spaces with the -c
/--config
flag.
bacalhau serve --orchestrator -c orchestrator.port=2222 -c api.port=3333
is the correct command.
This is because flags accept a single argument.
We discussed this trade-off in https://github.com/bacalhau-project/bacalhau/pull/4242 and several meetings.
One actionable item from this issue is improving the help text of the flag to make this clearer Currently, it states:
-c, --config string config file(s) or dot separated path(s) to config values
And the below would be more informative:
-c, --config string Specify one or more configuration files or inline configuration values.
- To use a YAML file, provide the file path:
--config <file_path>
- To set individual key-value pairs, use dot-separated paths:
--config <config_key>=<value>
- For map values, separate key-value pairs with commas:
--config <config_key>=<key1>=<value1>,<key2>=<value2>
- For array values, provide a comma-separated list:
--config <config_key>=<value1>,<value2>,...,<valueN>
Having a space between
api.port
and the value causes the port to be read as1