Skip to content

ThatArgs is a project for handling CLI arguments | ThatArgs是一个用于处理CLI参数的项目

License

Notifications You must be signed in to change notification settings

HoshikawaYoru/ThatArgs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ThatArgs

English | 简体中文

ThatArgs is a project for handling CLI arguments. This project provides a simple API.

Usage

import net.hoshikawayoru.thatargs.ArgumentsParser;

public class Main {
    public static void main(String[] args) {
        // Create a parser and bind the arguments
        ArgumentsParser parser = new ArgumentsParser(args);

        // Add arguments
        parser.addArgument("argID", "argAbbr", "argComplete");

        // Parse
        parser.parse();

        // Access the parsed arguments
        System.out.println(parser.getArgument("argID"));
    }
}

Build and Compile

mvn compile
mvn package

Example

Please refer to Test.java

License

This project is released under the MIT License.

About

ThatArgs is a project for handling CLI arguments | ThatArgs是一个用于处理CLI参数的项目

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages