Menu

Required

Chris DeGreef

A required argument is one that must be specified on the command-line when your program (MyProgram) is executed. By default, any argument you set up is not required. It is very easy to make it required.

This will make the --ticker argument required.

CmdLine.create("--type string --key ticker --required");
> MyProgram --ticker IBM

Related

Wiki: Compiling

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.