Skip to content

Commit 58fc542

Browse files
committed
work in progress - help to full sentences.
1 parent 2d48848 commit 58fc542

12 files changed

+51
-51
lines changed

Sources/Commands/PackageCommands/APIDiff.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ struct APIDiff: AsyncSwiftCommand {
5959
""")
6060
var breakageAllowlistPath: AbsolutePath?
6161

62-
@Argument(help: "The baseline treeish to compare to (e.g. a commit hash, branch name, tag, etc.)")
62+
@Argument(help: "The baseline treeish to compare to (for example, a commit hash, branch name, tag, and so on).")
6363
var treeish: String
6464

6565
@Option(parsing: .upToNextOption,

Sources/Commands/PackageCommands/AddDependency.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,31 +29,31 @@ extension SwiftPackageCommand {
2929
abstract: "Add a package dependency to the manifest"
3030
)
3131

32-
@Argument(help: "The URL or directory of the package to add")
32+
@Argument(help: "The URL or directory of the package to add.")
3333
var dependency: String
3434

3535
@OptionGroup(visibility: .hidden)
3636
var globalOptions: GlobalOptions
3737

38-
@Option(help: "The exact package version to depend on")
38+
@Option(help: "The exact package version to depend on.")
3939
var exact: Version?
4040

41-
@Option(help: "The specific package revision to depend on")
41+
@Option(help: "The specific package revision to depend on.")
4242
var revision: String?
4343

44-
@Option(help: "The branch of the package to depend on")
44+
@Option(help: "The branch of the package to depend on.")
4545
var branch: String?
4646

47-
@Option(help: "The package version to depend on (up to the next major version)")
47+
@Option(help: "The package version to depend on (up to the next major version).")
4848
var from: Version?
4949

50-
@Option(help: "The package version to depend on (up to the next minor version)")
50+
@Option(help: "The package version to depend on (up to the next minor version).")
5151
var upToNextMinorFrom: Version?
5252

53-
@Option(help: "Specify upper bound on the package version range (exclusive)")
53+
@Option(help: "Specify upper bound on the package version range (exclusive).")
5454
var to: Version?
5555

56-
@Option(help: "Specify dependency type")
56+
@Option(help: "Specify dependency type.")
5757
var type: DependencyType = .url
5858

5959
enum DependencyType: String, Codable, CaseIterable, ExpressibleByArgument {

Sources/Commands/PackageCommands/AddProduct.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ extension SwiftPackageCommand {
4141
@OptionGroup(visibility: .hidden)
4242
var globalOptions: GlobalOptions
4343

44-
@Argument(help: "The name of the new product")
44+
@Argument(help: "The name of the new product.")
4545
var name: String
4646

47-
@Option(help: "The type of target to add")
47+
@Option(help: "The type of target to add.")
4848
var type: CommandProductType = .library
4949

5050
@Option(
5151
parsing: .upToNextOption,
52-
help: "A list of targets that are part of this product"
52+
help: "A list of targets that are part of this product."
5353
)
5454
var targets: [String] = []
5555

Sources/Commands/PackageCommands/AddSetting.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,19 @@ extension SwiftPackageCommand {
3333
}
3434

3535
package static let configuration = CommandConfiguration(
36-
abstract: "Add a new setting to the manifest"
36+
abstract: "Add a new setting to the manifest."
3737
)
3838

3939
@OptionGroup(visibility: .hidden)
4040
var globalOptions: GlobalOptions
4141

42-
@Option(help: "The target to add the setting to")
42+
@Option(help: "The target to add the setting to.")
4343
var target: String
4444

4545
@Option(
4646
name: .customLong("swift"),
4747
parsing: .unconditionalSingleValue,
48-
help: "The Swift language setting(s) to add. Supported settings: \(SwiftSetting.allCases.map(\.rawValue).joined(separator: ", "))"
48+
help: "The Swift language setting(s) to add. Supported settings: \(SwiftSetting.allCases.map(\.rawValue).joined(separator: ", "))."
4949
)
5050
var _swiftSettings: [String]
5151

Sources/Commands/PackageCommands/AddTarget.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,33 +36,33 @@ extension SwiftPackageCommand {
3636
}
3737

3838
package static let configuration = CommandConfiguration(
39-
abstract: "Add a new target to the manifest")
39+
abstract: "Add a new target to the manifest.")
4040

4141
@OptionGroup(visibility: .hidden)
4242
var globalOptions: GlobalOptions
4343

44-
@Argument(help: "The name of the new target")
44+
@Argument(help: "The name of the new target.")
4545
var name: String
4646

47-
@Option(help: "The type of target to add")
47+
@Option(help: "The type of target to add.")
4848
var type: TargetType = .library
4949

5050
@Option(
5151
parsing: .upToNextOption,
52-
help: "A list of target dependency names"
52+
help: "A list of target dependency names."
5353
)
5454
var dependencies: [String] = []
5555

56-
@Option(help: "The URL for a remote binary target")
56+
@Option(help: "The URL for a remote binary target.")
5757
var url: String?
5858

59-
@Option(help: "The path to a local binary target")
59+
@Option(help: "The path to a local binary target.")
6060
var path: String?
6161

62-
@Option(help: "The checksum for a remote binary target")
62+
@Option(help: "The checksum for a remote binary target.")
6363
var checksum: String?
6464

65-
@Option(help: "The testing library to use when generating test targets, which can be one of 'xctest', 'swift-testing', or 'none'")
65+
@Option(help: "The testing library to use when generating test targets, which can be one of 'xctest', 'swift-testing', or 'none'.")
6666
var testingLibrary: PackageModelSyntax.AddTarget.TestHarness = .default
6767

6868
func run(_ swiftCommandState: SwiftCommandState) throws {

Sources/Commands/PackageCommands/AddTargetDependency.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@ import Workspace
2626
extension SwiftPackageCommand {
2727
struct AddTargetDependency: SwiftCommand {
2828
package static let configuration = CommandConfiguration(
29-
abstract: "Add a new target dependency to the manifest")
29+
abstract: "Add a new target dependency to the manifest.")
3030

3131
@OptionGroup(visibility: .hidden)
3232
var globalOptions: GlobalOptions
3333

34-
@Argument(help: "The name of the new dependency")
34+
@Argument(help: "The name of the new dependency.")
3535
var dependencyName: String
3636

37-
@Argument(help: "The name of the target to update")
37+
@Argument(help: "The name of the target to update.")
3838
var targetName: String
3939

40-
@Option(help: "The package in which the dependency resides")
40+
@Option(help: "The package in which the dependency resides.")
4141
var package: String?
4242

4343
func run(_ swiftCommandState: SwiftCommandState) throws {

Sources/Commands/PackageCommands/ArchiveSource.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ extension SwiftPackageCommand {
2929

3030
@Option(
3131
name: [.short, .long],
32-
help: "The absolute or relative path for the generated source archive"
32+
help: "The absolute or relative path for the generated source archive."
3333
)
3434
var output: AbsolutePath?
3535

Sources/Commands/PackageCommands/CompletionCommand.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ extension SwiftPackageCommand {
5252
@OptionGroup(visibility: .hidden)
5353
var globalOptions: GlobalOptions
5454

55-
@Argument(help: "Type of completions to list")
55+
@Argument(help: "Type of completions to list.")
5656
var mode: Mode
5757

5858
func run(_ swiftCommandState: SwiftCommandState) async throws {

Sources/Commands/PackageCommands/ComputeChecksum.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ struct ComputeChecksum: SwiftCommand {
2424
@OptionGroup(visibility: .hidden)
2525
var globalOptions: GlobalOptions
2626

27-
@Argument(help: "The absolute or relative path to the binary artifact")
27+
@Argument(help: "The absolute or relative path to the binary artifact.")
2828
var path: AbsolutePath
2929

3030
func run(_ swiftCommandState: SwiftCommandState) throws {

Sources/Commands/SwiftBuildCommand.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ struct BuildCommandOptions: ParsableArguments {
7272
}
7373

7474
/// If the test should be built.
75-
@Flag(help: "Build both source and test targets")
75+
@Flag(help: "Build both source and test targets.")
7676
var buildTests: Bool = false
7777

7878
/// Whether to enable code coverage.
7979
@Flag(name: .customLong("code-coverage"),
8080
inversion: .prefixedEnableDisable,
81-
help: "Enable code coverage")
81+
help: "Enable code coverage.")
8282
var enableCodeCoverage: Bool = false
8383

8484
/// If the binary output path should be printed.
@@ -87,20 +87,20 @@ struct BuildCommandOptions: ParsableArguments {
8787

8888
/// Whether to output a graphviz file visualization of the combined job graph for all targets
8989
@Flag(name: .customLong("print-manifest-job-graph"),
90-
help: "Write the command graph for the build manifest as a Graphviz file")
90+
help: "Write the command graph for the build manifest as a Graphviz file.")
9191
var printManifestGraphviz: Bool = false
9292

9393
/// Whether to output a graphviz file visualization of the PIF JSON sent to Swift Build.
9494
@Flag(name: .customLong("print-pif-manifest-graph"),
95-
help: "Write the PIF JSON sent to Swift Build as a Graphviz file")
95+
help: "Write the PIF JSON sent to Swift Build as a Graphviz file.")
9696
var printPIFManifestGraphviz: Bool = false
9797

9898
/// Specific target to build.
99-
@Option(help: "Build the specified target")
99+
@Option(help: "Build the specified target.")
100100
var target: String?
101101

102102
/// Specific product to build.
103-
@Option(help: "Build the specified product")
103+
@Option(help: "Build the specified product.")
104104
var product: String?
105105

106106
/// Testing library options.
@@ -115,7 +115,7 @@ struct BuildCommandOptions: ParsableArguments {
115115
package var traits: TraitOptions
116116

117117
/// If should link the Swift stdlib statically.
118-
@Flag(name: .customLong("static-swift-stdlib"), inversion: .prefixedNo, help: "Link Swift stdlib statically")
118+
@Flag(name: .customLong("static-swift-stdlib"), inversion: .prefixedNo, help: "Link Swift stdlib statically.")
119119
public var shouldLinkStaticSwiftStdlib: Bool = false
120120
}
121121

0 commit comments

Comments
 (0)