code: public static void checkNumOfArgsNoLessThan(Command cmd, CommandLine cl, int n) throws
        InvalidArgumentException {
      if (cl.getArgs().length < n) {
        throw new InvalidArgumentException(ExceptionMessage.INVALID_ARGS_NUM_INSUFFICIENT
            .getMessage(cmd.getCommandName(), n, cl.getArgs().length));
      }
    }
docs: Checks the number of non-option arguments is no less than n for command.
  
  @param cmd command instance
  @param cl parsed commandline arguments
  @param n an integer
  @throws InvalidArgumentException if the number is smaller than n