| package com.apigee.security.oas; |
| |
| import com.apigee.security.oas.converters.FileConverter; |
| import com.apigee.security.oas.validators.FileValidator; |
| import com.beust.jcommander.Parameter; |
| import java.io.File; |
| |
| /** JCommander Command Line arguments. */ |
| public class CommandLineArgs { |
| |
| @Parameter( |
| names = {"--file", "-F"}, |
| description = "File location of the OpenAPI Specification Document", |
| required = true, |
| validateWith = {FileValidator.class}, |
| converter = FileConverter.class) |
| private File oasFile; |
| |
| @Parameter( |
| names = {"--help", "-h"}, |
| description = "List of all possible options", |
| help = true) |
| private boolean help = false; |
| |
| public boolean isHelp() { |
| return help; |
| } |
| |
| public File getOasFile() { |
| return oasFile; |
| } |
| } |