No Description

Matt Clark 47e7525a2c Release 1.5.1 2 weeks ago
src 47e7525a2c Release 1.5.1 2 weeks ago
.gitignore e1a3860815 Initial commit pf LibAPIs. 2 years ago
README.md d53c250d8c Updating dependencies and Javadoc. 2 weeks ago
pom.xml 47e7525a2c Release 1.5.1 2 weeks ago

README.md

LibArgs

A simple java helper library for processing command line arguments.

Maven Dependency

Include the library in your project by adding the following dependency to your pom.xml

<dependency>
	<groupId>com.mclarkdev.tools</groupId>
	<artifactId>libargs</artifactId>
	<version>1.5.1</version>
</dependency>

Example

Initialize the library by using the array of arguments passed into the main class.

public static void main(String[] args) {
	LibArgs.instance().parse(args);
	System.out.printf("Hello, %s.", LibArgs.instance().getString("name"));
}

Then simply run your application with the desired arguments:

$ java -jar myApp.jar --name world
Hello, world.

License

Open source & free for all. ❤