diff --git a/Examples/repeat/Repeat.swift b/Examples/repeat/Repeat.swift index ac34dd36..c99cd110 100644 --- a/Examples/repeat/Repeat.swift +++ b/Examples/repeat/Repeat.swift @@ -13,7 +13,7 @@ import ArgumentParser @main struct Repeat: ParsableCommand { - @Option(help: "The number of times to repeat 'phrase'.") + @Option(help: "How many times to repeat 'phrase'.") var count: Int? = nil @Flag(help: "Include a counter with each repetition.") diff --git a/README.md b/README.md index 8765f2d8..b3ead232 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ struct Repeat: ParsableCommand { @Flag(help: "Include a counter with each repetition.") var includeCounter = false - @Option(name: .shortAndLong, help: "The number of times to repeat 'phrase'.") + @Option(name: .shortAndLong, help: "How many times to repeat 'phrase'.") var count: Int? = nil @Argument(help: "The phrase to repeat.") diff --git a/Tests/ArgumentParserExampleTests/RepeatExampleTests.swift b/Tests/ArgumentParserExampleTests/RepeatExampleTests.swift index 61f4f9db..b0ff5ece 100644 --- a/Tests/ArgumentParserExampleTests/RepeatExampleTests.swift +++ b/Tests/ArgumentParserExampleTests/RepeatExampleTests.swift @@ -61,7 +61,7 @@ final class RepeatExampleTests: XCTestCase { The phrase to repeat. OPTIONS: - --count The number of times to repeat 'phrase'. + --count How many times to repeat 'phrase'. --include-counter Include a counter with each repetition. -h, --help Show help information. @@ -84,7 +84,7 @@ final class RepeatExampleTests: XCTestCase { The phrase to repeat. OPTIONS: - --count The number of times to repeat 'phrase'. + --count How many times to repeat 'phrase'. --include-counter Include a counter with each repetition. -h, --help Show help information. @@ -96,7 +96,7 @@ final class RepeatExampleTests: XCTestCase { command: "repeat hello --count", expected: """ Error: Missing value for '--count ' - Help: --count The number of times to repeat 'phrase'. + Help: --count How many times to repeat 'phrase'. Usage: repeat [--count ] [--include-counter] See 'repeat --help' for more information. @@ -107,7 +107,7 @@ final class RepeatExampleTests: XCTestCase { command: "repeat hello --count ZZZ", expected: """ Error: The value 'ZZZ' is invalid for '--count ' - Help: --count The number of times to repeat 'phrase'. + Help: --count How many times to repeat 'phrase'. Usage: repeat [--count ] [--include-counter] See 'repeat --help' for more information. diff --git a/Tests/ArgumentParserGenerateDoccReferenceTests/Snapshots/testRepeatDoccReference().md b/Tests/ArgumentParserGenerateDoccReferenceTests/Snapshots/testRepeatDoccReference().md index 9e6e982d..9d1f5b87 100644 --- a/Tests/ArgumentParserGenerateDoccReferenceTests/Snapshots/testRepeatDoccReference().md +++ b/Tests/ArgumentParserGenerateDoccReferenceTests/Snapshots/testRepeatDoccReference().md @@ -8,7 +8,7 @@ repeat [--count=] [--include-counter] [--help] - term **--count=\**: -*The number of times to repeat 'phrase'.* +*How many times to repeat 'phrase'.* - term **--include-counter**: diff --git a/Tests/ArgumentParserGenerateDoccReferenceTests/Snapshots/testRepeatMarkdownReference().md b/Tests/ArgumentParserGenerateDoccReferenceTests/Snapshots/testRepeatMarkdownReference().md index 8d0714b4..443e50a8 100644 --- a/Tests/ArgumentParserGenerateDoccReferenceTests/Snapshots/testRepeatMarkdownReference().md +++ b/Tests/ArgumentParserGenerateDoccReferenceTests/Snapshots/testRepeatMarkdownReference().md @@ -8,7 +8,7 @@ repeat [--count=] [--include-counter] [--help] **--count=\:** -*The number of times to repeat 'phrase'.* +*How many times to repeat 'phrase'.* **--include-counter:** diff --git a/Tests/ArgumentParserGenerateManualTests/Snapshots/testRepeatMultiPageManual().mdoc b/Tests/ArgumentParserGenerateManualTests/Snapshots/testRepeatMultiPageManual().mdoc index 88b01cde..d5e4e055 100644 --- a/Tests/ArgumentParserGenerateManualTests/Snapshots/testRepeatMultiPageManual().mdoc +++ b/Tests/ArgumentParserGenerateManualTests/Snapshots/testRepeatMultiPageManual().mdoc @@ -14,7 +14,7 @@ .Sh DESCRIPTION .Bl -tag -width 6n .It Fl -count Ar count -The number of times to repeat 'phrase'. +How many times to repeat 'phrase'. .It Fl -include-counter Include a counter with each repetition. .It Ar phrase diff --git a/Tests/ArgumentParserGenerateManualTests/Snapshots/testRepeatSinglePageManual().mdoc b/Tests/ArgumentParserGenerateManualTests/Snapshots/testRepeatSinglePageManual().mdoc index 355821ac..ddb3cd59 100644 --- a/Tests/ArgumentParserGenerateManualTests/Snapshots/testRepeatSinglePageManual().mdoc +++ b/Tests/ArgumentParserGenerateManualTests/Snapshots/testRepeatSinglePageManual().mdoc @@ -14,7 +14,7 @@ .Sh DESCRIPTION .Bl -tag -width 6n .It Fl -count Ar count -The number of times to repeat 'phrase'. +How many times to repeat 'phrase'. .It Fl -include-counter Include a counter with each repetition. .It Ar phrase diff --git a/Tests/ArgumentParserUnitTests/ParsableArgumentsValidationTests.swift b/Tests/ArgumentParserUnitTests/ParsableArgumentsValidationTests.swift index 91f47473..58916292 100644 --- a/Tests/ArgumentParserUnitTests/ParsableArgumentsValidationTests.swift +++ b/Tests/ArgumentParserUnitTests/ParsableArgumentsValidationTests.swift @@ -16,7 +16,7 @@ import XCTest final class ParsableArgumentsValidationTests: XCTestCase { private struct A: ParsableCommand { - @Option(help: "The number of times to repeat 'phrase'.") + @Option(help: "How many times to repeat 'phrase'.") var count: Int? @Argument(help: "The phrase to repeat.") @@ -31,7 +31,7 @@ final class ParsableArgumentsValidationTests: XCTestCase { } private struct B: ParsableCommand { - @Option(help: "The number of times to repeat 'phrase'.") + @Option(help: "How many times to repeat 'phrase'.") var count: Int? @Argument(help: "The phrase to repeat.") @@ -41,7 +41,7 @@ final class ParsableArgumentsValidationTests: XCTestCase { } private struct C: ParsableCommand { - @Option(help: "The number of times to repeat 'phrase'.") + @Option(help: "How many times to repeat 'phrase'.") var count: Int? @Argument(help: "The phrase to repeat.") @@ -58,7 +58,7 @@ final class ParsableArgumentsValidationTests: XCTestCase { @Argument(help: "The phrase to repeat.") var phrase: String - @Option(help: "The number of times to repeat 'phrase'.") + @Option(help: "How many times to repeat 'phrase'.") var count: Int? enum CodingKeys: String, CodingKey { @@ -70,7 +70,7 @@ final class ParsableArgumentsValidationTests: XCTestCase { @Argument(help: "The phrase to repeat.") var phrase: String - @Option(help: "The number of times to repeat 'phrase'.") + @Option(help: "How many times to repeat 'phrase'.") var count: Int? @Flag(help: "Include a counter with each repetition.") @@ -128,7 +128,7 @@ final class ParsableArgumentsValidationTests: XCTestCase { @Argument(help: "The phrase to repeat.") var phrase: String = "" - @Option(help: "The number of times to repeat 'phrase'.") + @Option(help: "How many times to repeat 'phrase'.") var count: Int = 0 init() {}