Skip to content

Paramizer is a java library for unix-like command-line interpretation.

License

Notifications You must be signed in to change notification settings

Th3Shadowbroker/Paramizer

Repository files navigation

Paramizer

travis-ci-build-status

Paramizer is a java library for unix-like command-line interpretation.

Example

The code

String testInput = "unassigned1 -a assigned-value1OfA unassigned2 -b assigned-value1OfB -c --d";

ParameterString param = ParameterString.from(testInput);

System.out.println
(
    "Unassigned (" + param.getUnassigned().length + "): " + String.join(", ", param.getUnassigned()) + "\n" +
    "Flags (" + param.getFlagNames().length + "): " + String.join(", ", param.getFlagNames()) + "\n" +
    "ValueFlags (" + param.getValueFlagNames().length + "): " + String.join(", ", param.getValueFlagNames())+ "\n" +
    "Scheme (" + param.getScheme().length + "): " + Arrays.toString( param.getScheme() ) + "\n\n"
);    

The result


Unassigned (2): unassigned1, unassigned2
Flags (2): c, -d
ValueFlags (2): a, b
Scheme (8): [UNASSIGNED, VALUE_FLAG, VALUE, UNASSIGNED, VALUE_FLAG, VALUE, FLAG, FLAG]


Value-Flags:
	a: assigned-value1OfA
	b: assigned-value1OfB

Maven

...
<repository>
    <id>th3shadowbroker-releases</id>
    <url>https://nexus.m4taiori.io/repository/th3shadowbroker-releases/</url>
</repository>
...
<dependency>
    <groupId>io.m4taiori.paramizer</groupId>
    <artifactId>paramizer-core</artifactId>
    <version>20181128</version>
</dependency>
...

Documentation

The docs of this project are available here.

License

Paramizer is licensed under the MIT-License

About

Paramizer is a java library for unix-like command-line interpretation.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages