Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synopsis for composite groups does not expand for n..* (n > 1) #656

Closed
remkop opened this issue Apr 3, 2019 · 0 comments
Closed

Synopsis for composite groups does not expand for n..* (n > 1) #656

remkop opened this issue Apr 3, 2019 · 0 comments

Comments

@remkop
Copy link
Owner

remkop commented Apr 3, 2019

For example:

    static class CompositeGroupDemo {

        @ArgGroup(exclusive = false, multiplicity = "2..*")
        List<Composite> composites;

        static class Composite {
            @ArgGroup(exclusive = false, multiplicity = "2..*")
            Dependent dependent;

            @ArgGroup(exclusive = true, multiplicity = "1")
            Exclusive exclusive;
        }

        static class Dependent {
            @Option(names = "-a", required = true)
            int a;
            @Option(names = "-b", required = true)
            int b;
            @Option(names = "-c", required = true)
            int c;
        }

        static class Exclusive {
            @Option(names = "-x", required = true)
            boolean x;
            @Option(names = "-y", required = true)
            boolean y;
            @Option(names = "-z", required = true)
            boolean z;
        }
    }
@remkop remkop added this to the 4.0-alpha-2 milestone Apr 3, 2019
@remkop remkop closed this as completed in d0a838a Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant