[args4j-users] required arguments
Brought to you by:
kkawa
From: Gert-Jan v. de S. <st...@av...> - 2005-07-21 09:01:13
|
Is there any way to mark an argument as required and prevent the null check: ... StringOption paramUserName = new StringOption("-u"); cmdLineParser.addOption(paramUserName); String user = paramUserName.value; if (user == null) { printUsage(); } Thanks in advance, -- Gert-Jan van de Streek Avisi B.V. tel: 0313-48 28 58 |