input defaults to stdin for CLI tool