如何让Eclipse提示我输入命令行参数 [英] How to make Eclipse prompt me for command line arguments
问题描述
有没有办法让Eclipse每次运行程序时都提示我输入命令行参数?
将 string_prompt
添加为程序参数$
运行
配置中的c $ c>
$ {string_prompt}
还有一个 file_prompt
code> folder_prompt 如果你想要具体的文件\folders。
这些可通过变量
按钮在(x)=参数
选项卡上运行配置对话框。
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 change the Run Configuration every time.
Is there a way I can make Eclipse prompt me for command line arguments every time I run the program?
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.
这篇关于如何让Eclipse提示我输入命令行参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!