add help option and read from stdin