Skip to content

Commit

Permalink
fix(arg): Remove reference to Rust Cookbook in arg parsing
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
aos committed Nov 23, 2023
1 parent 29a6d3d commit 74c770a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/std_misc/arg.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ I got 3 arguments: ["1", "2", "3"].
## Crates

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

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

0 comments on commit 74c770a

Please sign in to comment.