Skip to content

Commit

Permalink
Fix deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jvendetti committed Aug 3, 2016
1 parent a5d08d9 commit bee3559
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ public class OntologyParserCommand {
private final static Logger log = LoggerFactory.getLogger(OntologyParserCommand.class .getName());

public static void main(String[] args) {
final Options gnuOptions = new Options();
gnuOptions.addOption("i", "input-repository", true,
final Options options = new Options();
options.addOption("i", "input-repository", true,
"Path to folder where input data repository is located")
.addOption("m","master-filename", true,
"Name of the ontology file to load first")
Expand All @@ -20,9 +20,9 @@ public static void main(String[] args) {
.addOption("r","reasoner", true,
"Option to use the reasoner");

CommandLineParser clp = new GnuParser();
CommandLineParser clp = new DefaultParser();
try {
CommandLine call = clp.parse(gnuOptions,args);
CommandLine call = clp.parse(options,args);
String inputRepoPath = call.getOptionValue("i");
String outputRepoPath = call.getOptionValue("o");
String masterFileName = call.getOptionValue("m");
Expand Down

0 comments on commit bee3559

Please sign in to comment.