command-line support for selecting ranges