Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Commit

Permalink
Print usage if input file not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeo Kheng Meng committed Nov 27, 2013
1 parent 2765b50 commit 0b64ad5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs-to-pdf-converter/src/MainClass.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static void main(String[] args){
try{
converter = processArguments(args);
} catch ( IllegalArgumentException e){
System.out.println("Input file not specified.");
System.out.println("\n\nInput file not specified.");
return;
}

Expand Down Expand Up @@ -65,6 +65,7 @@ public static Converter processArguments(String[] args) throws IllegalArgumentEx


if(inPath == null){
parser.printUsage(System.err);
throw new IllegalArgumentException();
}

Expand Down

0 comments on commit 0b64ad5

Please sign in to comment.