Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit a3658c9

Browse files
committed
Cleaned up the ArgumentHelp text and added the --version number.
1 parent 11db67f commit a3658c9

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

Sources/CreateXCFramework/Command+Options.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ extension Command {
1313

1414
// MARK: - Package Loading
1515

16-
@Option(default: ".", help: "The location of the Package.")
16+
@Option(default: ".", help: ArgumentHelp("The location of the Package", valueName: "directory"))
1717
var packagePath: String
1818

1919

2020
// MARK: - Building
2121

22-
@Option(default: ".build", help: "The location of the build/cache directory to use.")
22+
@Option(default: ".build", help: ArgumentHelp("The location of the build/cache directory to use", valueName: "directory"))
2323
var buildPath: String
2424

25-
@Option(default: .release, help: "Build with a specific configuration (debug or release).")
25+
@Option(default: .release, help: ArgumentHelp("Build with a specific configuration", valueName: "debug|release"))
2626
var configuration: PackageModel.BuildConfiguration
2727

28-
@Flag(default: true, inversion: .prefixedNo, help: "Whether to clean before we build.")
28+
@Flag(default: true, inversion: .prefixedNo, help: "Whether to clean before we build")
2929
var clean: Bool
3030

3131
@Flag(help: "Prints the available products and targets")
@@ -34,19 +34,19 @@ extension Command {
3434

3535
// MARK: - Output Options
3636

37-
@Option(help: "A list of platforms you want to build for. Can be specified multiple times. Default is to build for all platforms supported in your Package.swift, or all Apple platforms if omitted.")
37+
@Option(help: ArgumentHelp("A list of platforms you want to build for. Can be specified multiple times. Default is to build for all platforms supported in your Package.swift, or all Apple platforms if omitted", valueName: TargetPlatform.allCases.map({ $0.rawValue }).joined(separator: "|")))
3838
var platform: [TargetPlatform]
3939

40-
@Option(default: ".", help: "Where to place the compiled .xcframework(s)")
40+
@Option(default: ".", help: ArgumentHelp("Where to place the compiled .xcframework(s)", valueName: "directory"))
4141
var output: String
4242

43-
@Flag(help: "Whether to wrap the .xcframework(s) up in a versioned zip file ready for deployment.")
43+
@Flag(help: "Whether to wrap the .xcframework(s) up in a versioned zip file ready for deployment")
4444
var zip: Bool
4545

4646

4747
// MARK: - Targets
4848

49-
@Argument(help: "An optional list of products (or targets) to build. Defaults to building all `.library` products.")
49+
@Argument(help: "An optional list of products (or targets) to build. Defaults to building all `.library` products")
5050
var products: [String]
5151
}
5252
}

Sources/CreateXCFramework/Command.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ struct Command: ParsableCommand {
2626
only Apple pplatforms are supported.
2727
2828
Supported platforms: \(TargetPlatform.allCases.map({ $0.rawValue }).joined(separator: ", "))
29-
"""
29+
""",
30+
version: "1.0.1"
3031
)
3132

3233

0 commit comments

Comments
 (0)