From b70b388ae527cb0d46055ec24d2d0b17a9242ff6 Mon Sep 17 00:00:00 2001 From: Jay Oster Date: Sat, 10 Feb 2024 13:22:50 -0800 Subject: [PATCH] Fix links in README. And remove unused commented stuff. --- README.md | 4 ++-- examples/basic/Cargo.toml | 1 - examples/full/Cargo.toml | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e6571a5..a028581 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ The Minimum Supported Rust Version for `onlyargs` will always be made available There's an [argument parsing crate for everyone](https://github.com/rosetta-rs/argparse-rosetta-rs). So why write another? -`onlyargs` is an example of extreme minimalism! The only thing it provides is a trait and some utility functions; you're expected to do the actual work to implement it for your CLI argument struct. But don't let that scare you away! The parser implementation in the [`full` example](./examples/full.rs) is only around 50 lines! (Most of the file is boilerplate.) +`onlyargs` is an example of extreme minimalism! The only thing it provides is a trait and some utility functions; you're expected to do the actual work to implement it for your CLI argument struct. But don't let that scare you away! The parser implementation in the ["full" example](./examples/full/src/main.rs) is only around 50 lines! (Most of the file is boilerplate.) The goals of this parser are correctness, fast compile times, and convenience. @@ -52,4 +52,4 @@ The provided examples use the former in both cases: `--argument 123` and `-a 123 Some("--argument") | Some("-a") ``` -It is fairly straightforward to derive an implementation with a proc_macro. Compare the [`derive-example`](./examples/derive/src/main.rs) to the `full` example. +It is fairly straightforward to derive an implementation with a proc_macro. Compare the ["full-derive" example](./examples/full-derive/src/main.rs) to the "full" example. diff --git a/examples/basic/Cargo.toml b/examples/basic/Cargo.toml index f4d036f..c683462 100644 --- a/examples/basic/Cargo.toml +++ b/examples/basic/Cargo.toml @@ -8,4 +8,3 @@ publish = false [dependencies] error-iter = "0.4" onlyargs = { path = "../.." } -# onlyerror = "0.1" diff --git a/examples/full/Cargo.toml b/examples/full/Cargo.toml index 9f9785b..1a6229b 100644 --- a/examples/full/Cargo.toml +++ b/examples/full/Cargo.toml @@ -8,5 +8,4 @@ publish = false [dependencies] error-iter = "0.4" onlyargs = { path = "../.." } -# onlyargs_derive = { path = "../../onlyargs_dcerive" } onlyerror = "0.1"