title: Flink what is the proper way to submit args to job from cluster GUI?
body: <p>My goal is to pass args to the Main() function of a Flink job via the "Program Arguments" field in the cluster GUI.<a href="https://i.stack.imgur.com/apwWB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/apwWB.png" alt="enter image description here"></a></p>
  
  <p>And to access them (ideally by key name) in the Main() function some way like so:</p>
  
  <pre><code>public static void main(String[] args) throws Exception {
  
      ParameterTool parameter = ParameterTool.fromArgs(args);
  
      CustomProps props = new CustomProps (DEFAULT_PROPERTIES_FILE);
  
      String kafkaAutoOffsetReset = props.getKafkaAutoOffsetReset();
      String cassandraClusterUrl = props.getCassandraClusterUrl();
  
      if (args.length == 1 &amp;&amp; args[0] != null) {
  
          cassandraClusterUrl = parameter.get("cassandraClusterUrl");
          kafkaAutoOffsetReset = parameter.get("kafkaOffset");
      }
  
      //Other code...
  
  }
  </code></pre>
  
  <p>I have tried the "ParameterTool" but I don't get anything from it, and if I try something like:</p>
  
  <pre><code>kafkaAutoOffsetReset = args[0];
  </code></pre>
  
  <p>It only works if I only put a single word in the "Program Arguments" field. So if I put:</p>
  
  <pre><code>blah
  </code></pre>
  
  <p>it says it was set to "blah", but if I try any of these:</p>
  
  <pre><code>-kafkaOffset blah
  --kafkaOffset blah
  -kafkaOffset:blah
  -kafkaOffset=blah
  </code></pre>
  
  <p>I get nothing. I know in the CLI an example of how you pass args to a jar is: </p>
  
  <pre><code>--input file:///home/user/hamlet.txt --output file:///home/user/wordcount_out
  </code></pre>
  
  <p>But it seems like there is a different way I am missing to do so with the GUI and I am unsuccessful at hunting down documentation related to it. </p>
  
  <p><strong>TL;DR</strong> </p>
  
  <p>What is the proper way to submit multiple args via the "Program Arguments" field in the Flink Cluster GUI and what is the proper way to access them in Main() function?</p>
  
  <p>Thanks for any and all help in advance!</p>