@@ -0,0 +1,1410 @@
+package picocli;%0A%0Aimport org.junit.Ignore;%0Aimport org.junit.Test;%0Aimport picocli.CommandLine.Command;%0Aimport picocli.CommandLine.Option;%0A%0Aimport java.util.Collections;%0Aimport java.util.List;%0A%0Aimport static org.junit.Assert.*;%0A%0A// https://github.com/remkop/picocli/issues/1531%0Apublic class Issue1531ResetOptionMethods %7B%0A%0A    @Command%0A    static class MyCommand %7B%0A        List%3CString%3E modules;%0A%0A        @Option(names = %22-c%22, description = %22comps%22, split = %22,%22)%0A        List%3CString%3E comps;%0A%0A        @Option(names = %22-m%22, description = %22modules%22, split = %22,%22)%0A        public void setModules(final List%3CString%3E modules) %7B%0A            this.modules = modules;%0A        %7D%0A    %7D%0A%0A    @Ignore(%22https://github.com/remkop/picocli/issues/1531%22)%0A    @Test%0A    public void testResetOptionMethodsOnReuse() %7B%0A        MyCommand myCommand = new MyCommand();%0A        CommandLine cmd = new CommandLine(myCommand);%0A%0A        cmd.parseArgs(); // first, invoke with no args%0A        assertNull(myCommand.comps);%0A        assertNull(myCommand.modules);%0A%0A        // now invoke with some arguments%0A        cmd.parseArgs(%22-c c1 -m m1%22.split(%22 %22));%0A        assertEquals(Collections.singletonList(%22c1%22), myCommand.comps);%0A        assertEquals(Collections.singletonList(%22m1%22), myCommand.modules);%0A%0A        cmd.parseArgs(); // finally, invoke with no args again%0A        assertNull(myCommand.comps);%0A        assertNull(myCommand.modules);%0A    %7D%0A%7D%0A

add failing test