Skip to content

Thread panicked when running the rfs binary #123

@sameh-farouk

Description

@sameh-farouk

SyncOptions.hash using short -h, which clashes with Clap’s auto-generated -h/--help causing a panic

Executed command:

cargo run --features="build-binary" --bin rfs -- sync 

**Logs:**

```bash
Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.16s
    Running `target/debug/rfs sync`
thread 'main' panicked at /home/sameh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.5.9/src/builder/debug_asserts.rs:112:17:
Command sync: Short option names must be unique for each argument, but '-h' is in use by both 'hash' and 'help' (call `cmd.disable_help_flag(true)` to remove the auto-generated `--help`)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions