I am using JCommander for command line parameters parsing. I would like to add parameter dependency, but from the JCommander documentation, I am not able to find out if it is even supported. Has anyone tried it ? For example, java -jar Some.jar -a Foo -b Hola So, option -b shall only accompany with option -a.
This is supported in args4j. However, I can't use args4j because it does not support multiple values as JCommander.
Thanks