@@ -0,0 +1,1538 @@
+package picocli;%0A%0Aimport org.junit.Test;%0Aimport picocli.CommandLine;%0Aimport picocli.CommandLine.*;%0A%0Aimport static org.junit.Assert.*;%0Aimport static picocli.CommandLine.ScopeType.INHERIT;%0A%0A/**%0A * https://github.com/remkop/picocli/issues/1774%0A */%0Apublic class Issue1774 %7B%0A    public CommandLine getTestCommandLine(ParentTestCommand parentCommand, TestCommand testCommand, CommandLine.IFactory factory) %7B%0A        CommandLine commandLine = new CommandLine(parentCommand, factory);%0A        commandLine.addSubcommand(testCommand);%0A        return commandLine;%0A    %7D%0A    @Command(name = %22parentTestCommand%22, mixinStandardHelpOptions = true, scope = INHERIT)%0A    static class ParentTestCommand %7B%0A    %7D%0A%0A    @Command(name = %22parentTestCommand%22, mixinStandardHelpOptions = true, scope = INHERIT,%0A            subcommands = TestCommand.class)%0A    static class ParentTestCommand2 %7B%0A    %7D%0A%0A    @Command(name = %22test%22)%0A    class TestCommand %7B%0A        @Command(name = %22subcommand%22)%0A        void start(@Option(names = %22-r%22, arity = %220%22) boolean optionR,%0A                   @Option(names = %22-s%22, arity = %220%22) boolean optionS,%0A                   @Parameters(arity = %221%22) String url) %7B%0A            System.out.printf(%22optionR=%25s, optionS=%25s, url=%25s%25n%22, optionR, optionS, url);%0A        %7D%0A    %7D%0A    @Test%0A    public void testIssue1774() %7B%0A        CommandLine commandLine = getTestCommandLine(new ParentTestCommand(), new TestCommand(), CommandLine.defaultFactory());%0A        assertEquals(0, commandLine.execute(%22test%22, %22subcommand%22, %22-r%22, %22-s%22, %22URL%22));%0A    %7D%0A%7D%0A

add test