How to make Eclipse prompt me for command line arguments

前端 未结 3 433
臣服心动
臣服心动 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条回答
  •  萌比男神i
    2020-11-30 17:59

    Add string_prompt as a Program Argument in the Run configuration.

     ${string_prompt}
    

    There are also a file_prompt and a folder_prompt if you want specifically files\folders.

    These are available through the Variables button on the (x)= Arguments tab of the Run Configuration dialog.

提交回复
热议问题