Skip to content

Commit

Permalink
Check args.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbembenek committed Nov 25, 2019
1 parent f6d8239 commit 02ad3b8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
public class Main {

public static void main(String[] args) throws FileNotFoundException, IOException {
if (args.length != 1) {
throw new IllegalArgumentException("Expected a single argument (the Dminor file to process).");
}
String file = args[0];
Module mod = Extractor.extract(new FileReader(file));
Map<String, List<String[]>> db = Relationizer.relationize(mod);
Expand Down

0 comments on commit 02ad3b8

Please sign in to comment.