Skip to content
Snippets Groups Projects
CommandLineInterface.java 490 B
package cli;

import org.apache.commons.cli.*;

public class CommandLineInterface {

    private Options options;

    public CommandLineInterface(){
        this.options = new Options();
        options.addOption("create", "create an issue");
        options.addOption("push", "push issues");
    }

    public CommandLine getInput(String[] userInput) throws ParseException {
        CommandLineParser parser = new DefaultParser();
        return parser.parse(options, userInput);
    }
}