uutils / findutils

Rust implementation of findutils
MIT License
296 stars 36 forks source link

Upgrade to clap4 #266

Closed sylvestre closed 5 months ago

sylvestre commented 1 year ago

@tertsdiepraam as you are the expert on clap, do you know how to fix:


thread \'main\' panicked at \'Mismatch between definition and access of `delimiter`. Could not downcast to TypeId { t: 289972885646747488160657788137083402613 }, need to downcast to TypeId { t: 7428646492878894209665195255548636123 }
\', /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.3.19/src/parser/error.rs:32:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
tertsdiepraam commented 1 year ago

I think you're calling parse_delimiter twice. The resullt of the first is stored by clap and then you can do get_one with the type of the delimiter.

cakebaker commented 5 months ago

Superseded by https://github.com/uutils/findutils/pull/331