java/sql-dk/src/info/globalcode/sql/dk/CLIStarter.java
branchv_0
changeset 13 599aad77e986
parent 5 26223eb63851
child 14 189b1260b942
     1.1 --- a/java/sql-dk/src/info/globalcode/sql/dk/CLIStarter.java	Mon Dec 16 00:29:22 2013 +0100
     1.2 +++ b/java/sql-dk/src/info/globalcode/sql/dk/CLIStarter.java	Mon Dec 16 12:10:45 2013 +0100
     1.3 @@ -1,13 +1,22 @@
     1.4  package info.globalcode.sql.dk;
     1.5  
     1.6 +import java.util.logging.Level;
     1.7 +import java.util.logging.Logger;
     1.8 +
     1.9  /**
    1.10   *
    1.11   * @author Ing. František Kučera (frantovo.cz)
    1.12   */
    1.13  public class CLIStarter {
    1.14  
    1.15 +	private static final Logger log = Logger.getLogger(CLIStarter.class.getName());
    1.16 +
    1.17  	public static void main(String[] args) {
    1.18 -		CLIParser parser = new CLIParser();
    1.19 -		CLIOptions options = parser.parseOptions(args);
    1.20 +		try {
    1.21 +			CLIParser parser = new CLIParser();
    1.22 +			CLIOptions options = parser.parseOptions(args);
    1.23 +		} catch (CLIParserException e) {
    1.24 +			log.log(Level.SEVERE, null, e);
    1.25 +		}
    1.26  	}
    1.27  }