# Can i optionally pass argument to gatling commandline

**URL:** <https://community.gatling.io/t/can-i-optionally-pass-argument-to-gatling-commandline/7201>\
**Category:** Gatling (Open-Source)\
**Created:** [October 8, 2022, 2:27pm UTC](https://community.gatling.io/t/can-i-optionally-pass-argument-to-gatling-commandline/7201 "2022-10-08T14:27:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![GeMi](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/gemi/32/939_2.png) [@GeMi](https://community.gatling.io/u/GeMi)\
**Post date:** [October 9, 2022, 7:45am UTC](https://community.gatling.io/t/can-i-optionally-pass-argument-to-gatling-commandline/7201/2 "2022-10-09T07:45:11Z")

</div>

Please check Example:  
[Case0006CommandLineParametersSimulation](https://github.com/gemiusz/gatling-examples-maven-java/blob/master/src/test/java/pl/gemiusz/Case0006CommandLineParametersSimulation.java)  
or thread:  
[Cannot Grab Command Line Arguments](https://community.gatling.io/t/cannot-grab-command-line-arguments/7025)

---

_[View the full topic](https://community.gatling.io/t/can-i-optionally-pass-argument-to-gatling-commandline/7201)._
