package picocli.examples.arggroup; import picocli.CommandLine; import picocli.CommandLine.ArgGroup; import picocli.CommandLine.MutuallyExclusiveArgsException; import picocli.CommandLine.Option; /** *
* The example below defines a command with mutually exclusive options `-a`, `-b` and `-c`. *
* Note that the options are defined as {@code required = true}; * this means required within the group, not required within the command. *
* The group itself has a `multiplicity` attribute that defines how many times * the group may be specified within the command. * The default is {@code multiplicity = "0..1"}, meaning that by default a group * may be omitted or specified once. In this example the group has {@code multiplicity = "1"}, * so one of the options must occur on the command line. *
* The synopsis of this command is rendered as {@code