Skip to content

Commit

Permalink
Merge pull request #9 from Marcon/master
Browse files Browse the repository at this point in the history
Re-enable command line arguments pre-check.
  • Loading branch information
b0noI authored Jun 21, 2016
2 parents 3b99bcd + 11ba2e7 commit 2d6ba6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/aif/cli/Main.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.aif.cli;

import com.aif.cli.common.FileHelper;
import com.aif.language.sentence.ICommand;
import org.apache.commons.cli.*;

Expand All @@ -15,6 +14,7 @@ public static void main(String... args) throws IOException {
final Options options = Main.createCLIOptions();
try {
final CommandLine commandLine = Main.createCommandLineParser(options, args);
commandLinePrecheck(commandLine);
for (ICommand.Commands command : ICommand.Commands.values()) {
if (commandLine.hasOption(command.getCommandKey())) {
command.getCommand().validate(commandLine.getArgs());
Expand Down

0 comments on commit 2d6ba6b

Please sign in to comment.