src/main/java/pityoulish/cmdline/CommandHandlerBase.java
protected C checkCommand(String name, String... args)
   {
     final C cmd = getCommand(name);
     boolean ok  = ((cmd != null) &&
                    (args.length >= cmd.getMinArgs()) &&
                    (args.length <= cmd.getMaxArgs()) );
     return ok ? cmd : null;
   }
/**
   * Obtains a command, if it is supported.
   *
   * @param name        the name of the command
   * @param args        the arguments provided for the command
   *
   * @return    the command, if it is known and supported with the given
   *            number of arguments; <code>null</code> otherwise
   */
Obtains a command, if it is supported.
@param name        the name of the command
@param args        the arguments provided for the command

@return    the command, if it is known and supported with the given
number of arguments; null otherwise
Obtains a command if it is supported . @param name the name of the command @param args the arguments provided for the command @return the command if it is known and supported with the given number of arguments ; null otherwise
protected C checkCommand(String name, String... args)
   {
     final C cmd = getCommand(name);
     boolean ok  = ((cmd != null) &&
                    (args.length >= cmd.getMinArgs()) &&
                    (args.length <= cmd.getMaxArgs()) );
     return ok ? cmd : null;
   }
protected C checkCommand ( String name , String ... args ) { final C cmd = getCommand ( name ) ; boolean ok = ( ( cmd != null ) && ( args . length >= cmd . getMinArgs ( ) ) && ( args . length <= cmd . getMaxArgs ( ) ) ) ; return ok ? cmd : null ; }
Obtains a command, if it is supported.
Obtains a command if it is supported .