Command-line interface for segmentation.