                 print("generated:", outpath.prettyPath)
                 
             case .dumpPackage:
-                let root = opts.outputPath ?? opts.path.root
+                let root = opts.inputPath ?? opts.path.root
                 let manifest = try parseManifest(path: root, baseURL: root)
                 let package = manifest.package
                 let json = try jsonString(package: package)

        print("  generate-xcodeproj [--output <path>]   Generates an Xcode project")
        print("  show-dependencies [--format <format>]  Print the resolved dependency graph")
        print("                                         (format: text|dot|json)")
        print("  dump-package [--output <path>]         Print parsed Package.swift as JSON")
        print("")
        print("OPTIONS:")
        print("  -C, --chdir <path>        Change working directory before any other operation")

                opts.initMode = try InitMode(value)
            case .showDepsMode(let value):
                opts.showDepsMode = try ShowDependenciesMode(value)
            case .inputPath(let path):
                opts.inputPath = path
            case .outputPath(let path):
                opts.outputPath = path
            case .chdir(let path):
