fix option --input (stdin was hardcoded); thanks arne-cl