anchor.diff:      }
   }
   
  +@Command(name = "sub")
   class Sub implements Runnable {
       private static Logger logger = LogManager.getLogger();
   
  
positive.code: The specified name is used by the parser to recognize subcommands in the command line arguments.
  
  .Java
  [source,java,,role="primary"]
  ----
  CommandLine commandLine = new CommandLine(new Git())
          .addSubcommand("status",   new GitStatus())
  
negative.code:     }
  }
  ----
  
  With this, the `-v` option can be specified on the top-level command as well as the subcommands, so all of the below are valid invocations:
  
  