A Java command line arguments parser.
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
org.kohsuke.args4j.CmdLineParser
Parse command line arguments using annotations.
import org.kohsuke.args4j.CmdLineParser;
import org.kohsuke.args4j.Option;
public class MyApp {
@Option(name="-name", usage="Your name")
private String name;
public static void main(String[] args) throws Exception {
MyApp app = new MyApp();
new CmdLineParser(app).parseArgument(args);
System.out.println("Hello " + app.name);
}
}
Debug
Known footguns
No known footguns recorded.
Upgrade
Version history
Breaking-change detection hasn't run for this library yet.
Audit
Security & dependencies
CVE tracking and dependency tree are planned for a later release.