1   package com.lexicalscope.jewel.cli;
2   
3   import org.junit.Test;
4   
5   public class TestInheritedOptions {
6       public interface SuperInterface {
7           @Option boolean getSuperOption();
8       }
9   
10      public interface SubInterface extends SuperInterface {
11          @Option boolean getSubOption();
12      }
13  
14      @Test public void testSubInterface() throws ArgumentValidationException {
15          CliFactory.parseArguments(SubInterface.class, new String[] { "--superOption", "--superOption" });
16      }
17  }