-
Notifications
You must be signed in to change notification settings - Fork 445
Closed
Labels
theme: arg-groupAn issue or change related to argument groupsAn issue or change related to argument groupstheme: parserAn issue or change related to the parserAn issue or change related to the parsertype: bug 🐛
Milestone
Description
see: #1054
@ArgGroup(exclusive = false, multiplicity = "1..*")
private List<Modification> modifications = null;
private static class Modification {
@Option(names = { "-f", "--find" }, required = true)
public Pattern findPattern = null;
@ArgGroup(exclusive = true, multiplicity = "1")
private Change change = null;
}
private static class Change {
@Option(names = { "-d", "--delete" }, required = true)
public boolean delete = false;
@Option(names = { "-w", "--replace-with" }, required = true)
public String replacement = null;
}
called with:
-f pattern -w text--> accepted --> ok-f -f -w text--> accepted --> wrong:findPattern = "-f", means, the second-fis treated as an option-parameter for the first-f-f pattern -w -d--> wrong:replacement = "-d", means-dis treated as an option-parameter for-w
Metadata
Metadata
Assignees
Labels
theme: arg-groupAn issue or change related to argument groupsAn issue or change related to argument groupstheme: parserAn issue or change related to the parserAn issue or change related to the parsertype: bug 🐛