From 662b8911dcb0e634982a5d048fe9a1f4f89c860b Mon Sep 17 00:00:00 2001 From: Aos Dabbagh <25783780+aos@users.noreply.github.com> Date: Thu, 23 Nov 2023 12:48:24 -0500 Subject: [PATCH] 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. --- src/std_misc/arg.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/std_misc/arg.md b/src/std_misc/arg.md index b5dd89ce60..1cf8cf7ef4 100644 --- a/src/std_misc/arg.md +++ b/src/std_misc/arg.md @@ -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