# Help with specifying multiple options on the Elasticsearch command line

**URL:** <https://discuss.elastic.co/t/help-with-specifying-multiple-options-on-the-elasticsearch-command-line/210923>\
**Category:** Elasticsearch\
**Created:** [December 6, 2019, 5:41pm UTC](https://discuss.elastic.co/t/help-with-specifying-multiple-options-on-the-elasticsearch-command-line/210923 "2019-12-06T17:41:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Craig.Wheeler](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Craig.Wheeler](https://discuss.elastic.co/u/Craig.Wheeler)\
**Post date:** [December 6, 2019, 5:41pm UTC](https://discuss.elastic.co/t/help-with-specifying-multiple-options-on-the-elasticsearch-command-line/210923/1 "2019-12-06T17:41:32Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 3, 2020, 5:41pm UTC](https://discuss.elastic.co/t/help-with-specifying-multiple-options-on-the-elasticsearch-command-line/210923/2 "2020-01-03T17:41:33Z")

</div>

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