Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/th3shadowbroker/paramizer
Paramizer is a java library for unix-like command-line interpretation.
https://github.com/th3shadowbroker/paramizer
command-line java lib maven mit unix-like
Last synced: 2 days ago
JSON representation
Paramizer is a java library for unix-like command-line interpretation.
- Host: GitHub
- URL: https://github.com/th3shadowbroker/paramizer
- Owner: Th3Shadowbroker
- License: mit
- Created: 2018-10-31T18:07:16.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-07T12:26:27.000Z (over 2 years ago)
- Last Synced: 2024-05-01T15:23:30.929Z (7 months ago)
- Topics: command-line, java, lib, maven, mit, unix-like
- Language: Java
- Homepage: https://m4taiori.io/#projects
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## Paramizer
![travis-ci-build-status](https://travis-ci.com/Th3Shadowbroker/Paramizer.svg?branch=master)Paramizer is a java library for unix-like command-line interpretation.
## Example
#### The code
``` java
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
```xml
...th3shadowbroker-releases
https://nexus.m4taiori.io/repository/th3shadowbroker-releases/...
io.m4taiori.paramizer
paramizer-core
20181128...
```## Documentation
The docs of this project are available [here](https://docs.m4taiori.io/paramizer/).## License
Paramizer is licensed under the MIT-License