hzsk-corpus-services  1.0
Main.java
Go to the documentation of this file.
1 /*
2  * To change this license header, choose License Headers in Project Properties.
3  * To change this template file, choose Tools | Templates
4  * and open the template in the editor.
5  */
6 package de.uni_hamburg.corpora;
7 import com.beust.jcommander.JCommander;
8 import com.beust.jcommander.Parameter;
9 
14 public class Main{
15 
16  @Parameter(names={"--length", "-l"})
17  int length;
18  @Parameter(names={"--pattern", "-p"})
19  int pattern;
20 
21  public static void main(String ... argv) {
22  Main main = new Main();
23  JCommander.newBuilder()
24  .addObject(main)
25  .build()
26  .parse(argv);
27  main.run();
28  }
29 
30  public void run() {
31  System.out.printf("%d %d", length, pattern);
32  }
33 }
34 
35 
36 
static void main(String...argv)
Definition: Main.java:21