1 package com.lexicalscope.jewel.cli.examples; 2 3 import com.lexicalscope.jewel.cli.Option; 4 5 public class ClassOptionalOption 6 { 7 private Integer myOptionalOption; 8 private Integer myMandatoryOption; 9 10 Integer getMyOptionalOption() 11 { 12 return myOptionalOption; 13 } 14 15 @Option(defaultToNull = true) void setMyOptionalOption(final Integer myOptionalOption) { 16 this.myOptionalOption = myOptionalOption; 17 } 18 19 Integer getMyMandatoryOption() 20 { 21 return myMandatoryOption; 22 } 23 24 @Option void setMyMandatoryOption(final Integer myMandatoryOption) { 25 this.myMandatoryOption = myMandatoryOption; 26 } 27 }