Skip to content

Commit

Permalink
Fix links in README.
Browse files Browse the repository at this point in the history
And remove unused commented stuff.
  • Loading branch information
parasyte committed Feb 10, 2024
1 parent b8bbee9 commit b70b388
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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.
1 change: 0 additions & 1 deletion examples/basic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ publish = false
[dependencies]
error-iter = "0.4"
onlyargs = { path = "../.." }
# onlyerror = "0.1"
1 change: 0 additions & 1 deletion examples/full/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ publish = false
[dependencies]
error-iter = "0.4"
onlyargs = { path = "../.." }
# onlyargs_derive = { path = "../../onlyargs_dcerive" }
onlyerror = "0.1"

0 comments on commit b70b388

Please sign in to comment.