Help with specifying multiple options on the Elasticsearch command line

I'm running Elasticsearch 7.5 on Windows and I'm trying to pass multiple configuration options on the command line to bootstrap my cluster:

elasticsearch.bat-Egateway.expected_data_nodes=0 -Ecluster.initial_master_nodes=MasterNode

As Elasticsearch is starting, it throws an IllegalArgumentException:

"java.lang.IllegalArgumentException: Failed to parse value [0 -Ecluster.initial_master_nodes=MasterNode] for setting [gateway.expected_data_nodes]"

If I reverse the order of the parameters, I get this:
[2019-12-06T09:36:14,746][MasterNode][INFO][o.e.c.c.ClusterBootstrapService] skipping cluster bootstrapping as local node does not match bootstrap requirements: [MasterNode -Egateway.expected_data_nodes=0]

If I specify only one of the two configuration settings, everything works.
Can someone please help me understand what I am doing wrong?

Thanks!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.