src/main/java/pityoulish/mbclient/MsgBoardCommandDispatcher.java
protected int parseLimit(String arg)
  {
    int limit = 0;

    try {
      limit = Integer.parseInt(arg);

      if ((limit < 1) || (limit > 127))
       {
         System.err.println(Catalog.CMDLINE_BAD_LIMIT_1.format(arg));
         limit = -1;
       }

    } catch (Exception x) {
      System.err.println(Catalog.CMDLINE_BAD_LIMIT_1.format(arg));
      System.err.println(x);
      limit = -1;
    }

    return limit;
  }
/**
   * Parses the "limit" argument for the List Messages operation.
   * In case of a problem, an error message is printed and
   * a negative value returned.
   * Violation of the range 1..127 is detected here and treated as a problem.
   *
   * @param arg   the string to parse
   *
   * @return   the limit, or negative if invalid
   */
Parses the "limit" argument for the List Messages operation.
In case of a problem, an error message is printed and
a negative value returned.
Violation of the range 1..127 is detected here and treated as a problem.

@param arg   the string to parse

@return   the limit, or negative if invalid
Parses the " limit " argument for the List Messages operation . In case of a problem an error message is printed and a negative value returned . Violation of the range 1 .. 127 is detected here and treated as a problem . @param arg the string to parse @return the limit or negative if invalid
protected int parseLimit(String arg)
  {
    int limit = 0;
    try {
      limit = Integer.parseInt(arg);
      if ((limit < 1) || (limit > 127))
       {
         System.err.println(Catalog.CMDLINE_BAD_LIMIT_1.format(arg));
         limit = -1;
       }
    } catch (Exception x) {
      System.err.println(Catalog.CMDLINE_BAD_LIMIT_1.format(arg));
      System.err.println(x);
      limit = -1;
    }
    return limit;
  }
protected int parseLimit ( String arg ) { int limit = 0 ; try { limit = Integer . parseInt ( arg ) ; if ( ( limit < 1 ) || ( limit > 127 ) ) { System . err . println ( Catalog . CMDLINE_BAD_LIMIT_1 . format ( arg ) ) ; limit = - 1 ; } } catch ( Exception x ) { System . err . println ( Catalog . CMDLINE_BAD_LIMIT_1 . format ( arg ) ) ; System . err . println ( x ) ; limit = - 1 ; } return limit ; }
Parses the "limit" argument for the List Messages operation.
Parses the " limit " argument for the List Messages operation .