Skip to content

A Java option processor 100% compatible with the GNU C Library getopt. Slighly modified from the original version to be able to use it as a library leaving most error control to the user

Notifications You must be signed in to change notification settings

obourdon/java-getopt

 
 

Repository files navigation

This is my own fork of the original https://github.com/arenn/java-getopt repository.

I have therefore added the following lines to the original README file

If you are using version 1.0.15 which includes the removal of System.err.println error messages which are now replaced by throw new IllegalArgumentException therefore allowing to use this library more easily in your code deciding on your own what you do with thrown exceptions. You will also beneficiate from Maven build facility.

To build the jar type: mvn clean ; mvn package

You an then use the jar produced under target/java-getopt-1.0.15.jar

The other changes I made are both cosmetic (code formating) and also try to comply with some Java coding best practices like using "constant".compare(object_string) instead of object_string.compare("constant") and isEmpty() rather than .length() == 0

Of course you can ask me to integrate any thing you see fit/missing and depending on what my sparetime allows me I'll be more than happy to try to comply to your needs. Feel free also to use

https://github.com/obourdon/java-getopt/issues

to log any issue you would like to be addressed

Thanks for everything

Olivier

olivier.bourdon@freesbee.fr

https://github.com/obourdon/java-getopt

About

A Java option processor 100% compatible with the GNU C Library getopt. Slighly modified from the original version to be able to use it as a library leaving most error control to the user

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 99.7%
  • Makefile 0.3%