Skip to content

Commit 74c770a

Browse files
committed
fix(arg): Remove reference to Rust Cookbook in arg parsing
This PR removes the reference to the Rust Cookbook in the argument parsing section. The example linked is outdated and no longer works. Additionally, the repo hasn't seen any activity in a few years and rust-lang-nursery has been deprecated anyway (https://internals.rust-lang.org/t/rust-lang-nursery-deprecation/11205). I chose to replace it with the `rust-cli` book link that also uses a `clap` example.
1 parent 29a6d3d commit 74c770a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/std_misc/arg.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ I got 3 arguments: ["1", "2", "3"].
3030
## Crates
3131

3232
Alternatively, there are numerous crates that can provide extra functionality
33-
when creating command-line applications. The [Rust Cookbook] exhibits best
34-
practices on how to use one of the more popular command line argument crates,
35-
`clap`.
33+
when creating command-line applications. One of the more popular command line
34+
argument crates being [`clap`].
3635

37-
[Rust Cookbook]: https://rust-lang-nursery.github.io/rust-cookbook/cli/arguments.html
36+
[clap]: https://rust-cli.github.io/book/tutorial/cli-args.html#parsing-cli-arguments-with-clap

0 commit comments

Comments
 (0)