How to make Eclipse prompt me for command line arguments

前端 未结 3 435
臣服心动
臣服心动 2020-11-30 17:26

I know I can configure command line arguments in the Run configuration but I want to run a java file multiple times with different command line arguments. It\'s a pain to ch

3条回答
  •  庸人自扰
    2020-11-30 18:02

    This is an old question, but since I really don't see this extra info anywhere else

    You can also type ${string_prompt:My Prompt Text:Default Value}

    And that will pop up a window asking 'Please input a value for My Prompt Text' and then with a default value of 'Default Value'.

提交回复
热议问题