Home | History | Annotate | Download | only in args
      1 package com.beust.jcommander.args;
      2 
      3 import com.beust.jcommander.Parameter;
      4 import com.beust.jcommander.validators.PositiveInteger;
      5 
      6 public class ArgsValidate1 {
      7 
      8   @Parameter(names = "-age", validateWith = PositiveInteger.class)
      9   public Integer age;
     10 }
     11