Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix invalid link in docs #440

Merged
merged 5 commits into from
Jun 23, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,4 @@ and then either calls your `run()` method or exits with a useful message.

- <doc:ManualParsing>
- <doc:ExperimentalFeatures>
- <doc:CommandsAndSubcommands>
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ print(chosen.joined(separator: "\n"))

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 ``ParsableCommand/parseAsRoot(_:)`` method returns a type-erased ``ParsableCommand``.

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:
Let's see how this works by using the `Math` command and subcommands defined in [Commands and Subcommands](https://apple.github.io/swift-argument-parser/documentation/argumentparser/commandsandsubcommands). This time, instead of calling `Math.main()`, we'll call `Math.parseAsRoot()`, and switch over the result:

```swift
do {
Expand Down