bugfix: introduction of longopts broke stdin