diff --git a/Sources/LicensePlist/main.swift b/Sources/LicensePlist/main.swift index 77afbb44..139f35e5 100644 --- a/Sources/LicensePlist/main.swift +++ b/Sources/LicensePlist/main.swift @@ -20,53 +20,53 @@ extension CompletionKind { struct LicensePlist: ParsableCommand { @Option(name: .long, completion: .file()) var cartfilePath = Consts.cartfileName - + @Option(name: .long, completion: .file()) var mintfilePath = Consts.mintfileName - + @Option(name: .long, completion: .directory) var podsPath = Consts.podsDirectoryName - + @Option(name: .long, completion: .file()) var packagePath = Consts.packageName - + @Option(name: .long, completion: .file()) var xcodeprojPath = "*.xcodeproj" - + @Option(name: .long, completion: .file()) var outputPath = Consts.outputPath - + static let githubTokenEnv = "LICENSE_PLIST_GITHUB_TOKEN" @Option(name: .long, help: "You can also pass the token via the '\(Self.githubTokenEnv)' environment variable.", completion: .empty) var githubToken: String? - + @Option(name: .long, completion: .file()) var configPath = Consts.configPath - + @Option(name: .long, completion: .empty) var prefix = Consts.prefix - + @Option(name: .long, completion: .file()) var htmlPath: String? - + @Option(name: .long, completion: .file()) var markdownPath: String? - + @Flag(name: .long) var force = false - + @Flag(name: .long) var addVersionNumbers = false - + @Flag(name: .long) var suppressOpeningDirectory = false - + @Flag(name: .long) var singlePage = false - + @Flag(name: .long) var failIfMissingLicense = false - + func run() throws { Logger.configure() var config = loadConfig(configPath: URL(fileURLWithPath: configPath)) diff --git a/Tests/LicensePlistTests/Entity/LicensePlistHolderTests.swift b/Tests/LicensePlistTests/Entity/LicensePlistHolderTests.swift index 291eb417..d745a4a2 100644 --- a/Tests/LicensePlistTests/Entity/LicensePlistHolderTests.swift +++ b/Tests/LicensePlistTests/Entity/LicensePlistHolderTests.swift @@ -56,7 +56,7 @@ class LicensePlistHolderTests: XCTestCase { let podsLicense = CocoaPodsLicense(library: pods, body: "\(firstPart)\n\n\n---\n\n\(secondPart)\n\n==========\n\n\(thirdPart)") let result = LicensePlistHolder.load(licenses: [podsLicense], options: Options.empty) let (_, items) = result.deserialized() - + let item1 = items.first!.1 let groupArray = item1["PreferenceSpecifiers"]! XCTAssertEqual(groupArray.count, 5)