public static Range<Long> parseLongRange(final String arg) {
    checkArgument(arg.matches("-?\\d+\\.\\.-?\\d+"));
    final Iterator<String> ends = Splitter.on("..").split(arg).iterator();
    return Range.closed(parseLong(ends.next()), parseLong(ends.next()));
  }
Parse long range range.

@param arg the arg
@return the range
app/src/main/java/org/hyperledger/besu/cli/options/OptionParser.java