#!/usr/bin/env bash
# opensim next: find available ports or grid locations.

USAGE='opensim next port [MIN] [COUNT] [-e PORT]
       opensim next GRID location [X,Y] [COUNT] [-e X,Y]
       GRID: the nick of a grid or its name'
HELP="Find free ports or region locations using the same rules as setup. Repeat -e to exclude values."

source "$(dirname "$(realpath "${BASH_SOURCE[0]}" 2>/dev/null || echo "${BASH_SOURCE[0]}")")/../src/lib/common"

run next "$@"
