Skip to content

Commit

Permalink
feat: use own argument parser to replace structopt
Browse files Browse the repository at this point in the history
structopt has been replaced by clap,
whose dependency libc does not build on newer architectures (e.g., loongarch64).
My previous attempts to port choose to clap v4 resulted in an incompatible change in allow_hyphen_values's behavior - I have reported this issue to the upstream:

- clap-rs/clap#5434
- clap-rs/clap#4187

To simplify things, I wrote my own argument parser for clap..

This change passes `cargo test` .
  • Loading branch information
eatradish committed Mar 30, 2024
1 parent b9ab074 commit a9de536
Show file tree
Hide file tree
Showing 11 changed files with 221 additions and 282 deletions.
227 changes: 2 additions & 225 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Expand Up @@ -16,7 +16,6 @@ exclude = [
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
structopt = "0.3"
regex = "1"
lazy_static = "1"
backslash = "0"

0 comments on commit a9de536

Please sign in to comment.