You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 11, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: Sources/CreateXCFramework/Command+Options.swift
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -13,19 +13,19 @@ extension Command {
13
13
14
14
// MARK: - Package Loading
15
15
16
-
@Option(default:".", help:"The location of the Package.")
16
+
@Option(default:".", help:ArgumentHelp("The location of the Package", valueName:"directory"))
17
17
varpackagePath:String
18
18
19
19
20
20
// MARK: - Building
21
21
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"))
23
23
varbuildPath:String
24
24
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"))
26
26
varconfiguration:PackageModel.BuildConfiguration
27
27
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")
29
29
varclean:Bool
30
30
31
31
@Flag(help:"Prints the available products and targets")
@@ -34,19 +34,19 @@ extension Command {
34
34
35
35
// MARK: - Output Options
36
36
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:"|")))
38
38
varplatform:[TargetPlatform]
39
39
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"))
41
41
varoutput:String
42
42
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")
44
44
varzip:Bool
45
45
46
46
47
47
// MARK: - Targets
48
48
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")
0 commit comments