All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.zhengframework.bootstrap.Arguments Maven / Gradle / Ivy

There is a newer version: 1.8.0
Show newest version
package com.github.zhengframework.bootstrap;

import joptsimple.OptionParser;
import joptsimple.OptionSet;
import lombok.Getter;

public class Arguments {

  @Getter
  private final OptionParser optionParser = new OptionParser();

  private final String[] arguments;

  public Arguments(String[] arguments) {
    this.arguments = arguments;
    optionParser.allowsUnrecognizedOptions();
  }

  public OptionSet parse() {
    return optionParser.parse(arguments);
  }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy