Skip to content

Short option names must be unique for each argument, but '-p' is in use by both 'port' and 'prometheus_port' #601

@cebtenzzre

Description

@cebtenzzre

System Info

cargo 1.86.0 (adf9b6ad1 2025-02-28)

Information

  • Docker
  • The CLI directly

Tasks

  • An officially supported command
  • My own modifications

Reproduction

  1. build from source (5d632d9):
$ cargo build -F candle-cuda -F http -F dynamic-linking --no-default-features
  1. run:
$ target/debug/text-embeddings-router
thread 'main' panicked at /home/jared/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap_builder-4.5.36/src/builder/debug_asserts.rs:112:17:
Command text-embeddings-router: Short option names must be unique for each argument, but '-p' is in use by both 'port' and 'prometheus_port'
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Works fine with #589 reverted.

Expected behavior

text-embeddings-router should not panic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions