Registry / cli / java-getopt

java-getopt

JSON →
library1.0.13javamavenunverified

Java port of the GNU getopt command-line option parser, providing POSIX-style option parsing.

<dependency> <groupId>gnu.getopt</groupId> <artifactId>java-getopt</artifactId> <version>1.0.13</version> </dependency>
INSTALL
IMPORT
SIG · JAVA-GETOPT
J
java-getopt
clijavav1.0.13
harness data pending
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.

Getopt
gnu.getopt.Getopt

Parse command-line options using GNU-style getopt.

import gnu.getopt.Getopt; Getopt g = new Getopt("myapp", args, "ab:c"); int c; while ((c = g.getopt()) != -1) { System.out.println((char) c); }
Debug
Known issues
gotchaThis library is unmaintained and may have compatibility issues with newer Java versions.
fix
Consider using picocli or JCommander as modern alternatives.
affects: >=1.0.0
Upgrade
Version history
1.0.13latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
22
OpenAI (training)
1
Resources
java-getopt — mvn dependency:get java-getopt · libregistry