Skip to content

Commit 3bbfafe

Browse files
authored
Fix various broken links in documentation articles. (#362)
1 parent 7e04f56 commit 3bbfafe

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Sources/ArgumentParser/Documentation.docc/Articles/CustomizingHelp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ OPTIONS:
7676

7777
## Customizing Help for Commands
7878

79-
In addition to configuring the command name and subcommands, as described in [Command and Subcommands](03%20Commands%20and%20Subcommands.md), you can also configure a command's help text by providing an abstract and discussion.
79+
In addition to configuring the command name and subcommands, as described in [Command and Subcommands](./CommandsAndSubcommands.md), you can also configure a command's help text by providing an abstract and discussion.
8080

8181
```swift
8282
struct Repeat: ParsableCommand {

Sources/ArgumentParser/Documentation.docc/Articles/DeclaringArguments.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ struct Example: ParsableCommand {
199199
}
200200
```
201201

202-
Throw an error from the `transform` function to indicate that the user provided an invalid value for that type. See [Handling Transform Errors](./05%20Validation%20and%20Errors.md#handling-transform-errors) for more about customizing `transform` function errors.
202+
Throw an error from the `transform` function to indicate that the user provided an invalid value for that type. See [Handling Transform Errors](./Validation.md#handling-transform-errors) for more about customizing `transform` function errors.
203203

204204
## Using flag inversions, enumerations, and counts
205205

@@ -255,7 +255,7 @@ struct Example: ParsableCommand {
255255
}
256256
```
257257

258-
The flag names in this case are drawn from the raw values — for information about customizing the names and help text, see the [`EnumerableFlag` documentation](../Sources/ArgumentParser/Parsable%20Types/EnumerableFlag.swift).
258+
The flag names in this case are drawn from the raw values — for information about customizing the names and help text, see the [`EnumerableFlag` documentation](../../Parsable%20Types/EnumerableFlag.swift).
259259

260260
```
261261
% example --in-memory-cache --pink --silver

Sources/ArgumentParser/Documentation.docc/Articles/ManualParsing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ For most programs, calling the static `main()` method on the root command type i
1010

1111
For simple Swift scripts, and for those who prefer a straight-down-the-left-edge-of-the-screen scripting style, you can define a single `ParsableArguments` type to parse explicitly from the command-line arguments.
1212

13-
Let's implement the `Select` command discussed in [Validation and Errors](05%20Validation%20and%20Errors.md), but using a scripty style instead of the typical command. First, we define the options as a `ParsableArguments` type:
13+
Let's implement the `Select` command discussed in [Validation and Errors](./Validation.md), but using a scripty style instead of the typical command. First, we define the options as a `ParsableArguments` type:
1414

1515
```swift
1616
struct SelectOptions: ParsableArguments {
@@ -51,7 +51,7 @@ print(chosen.joined(separator: "\n"))
5151

5252
Manually parsing commands is a little more complex than parsing a simple `ParsableArguments` type. The result of parsing from a tree of subcommands may be of a different type than the root of the tree, so the static `parseAsRoot()` method returns a type-erased `ParsableCommand`.
5353

54-
Let's see how this works by using the `Math` command and subcommands defined in [Commands and Subcommands](03%20Commands%20and%20Subcommands.md). This time, instead of calling `Math.main()`, we'll call `Math.parseAsRoot()`, and switch over the result:
54+
Let's see how this works by using the `Math` command and subcommands defined in [Commands and Subcommands](./CommandsAndSubcommands.md). This time, instead of calling `Math.main()`, we'll call `Math.parseAsRoot()`, and switch over the result:
5555

5656
```swift
5757
do {

0 commit comments

Comments
 (0)