 private enum Mode: Argument, Equatable, CustomStringConvertible {
     case build(Configuration, Toolchain)
     case clean(CleanMode)
-    case doctor
-    case showDependencies(ShowDependenciesMode)
-    case fetch
-    case update
-    case Init(InitMode)
     case usage
     case version
-    case generateXcodeproj(String?)
-    case dumpPackage(String?)
 
     init?(argument: String, pop: () -> String?) throws {
         switch argument {

        print("MODES:")
        print("  --configuration <value>        Build with configuration (debug|release) [-c]")
        print("  --clean[=<mode>]               Delete artifacts (build|dist)")
        print("  --init[=<mode>]                Create a package template (executable|library)")
        print("  --fetch                        Fetch package dependencies")
        print("  --update                       Update package dependencies")
        print("  --generate-xcodeproj[=<path>]  Generates an Xcode project [-X]")
        print("  --show-dependencies[=<mode>]   Print dependency graph (text|dot|json)")
        print("  --dump-package[=<path>]        Print Package.swift as JSON")
        print("")
        print("OPTIONS:")
        print("  --chdir <path>       Change working directory before any other operation [-C]")

        switch self {
            case .build(let conf, _): return "--configuration=\(conf)"
            case .clean(let mode): return "--clean=\(mode)"
            case .usage: return "--help"
            case .version: return "--version"
        }
    }
}
