fix: fix prometheus_port CLI short arg conflict

The short arg of `prometheus_port` conflicts with `port`. Remove the
short arg variant.

Fixes https://github.com/huggingface/text-generation-inference/issues/3205
This commit is contained in:
Tzu-Yu Lee 2025-05-13 00:05:56 +08:00
parent c458d21d07
commit cc4b5848b9
6 changed files with 6 additions and 6 deletions

View File

@ -119,7 +119,7 @@ struct Args {
#[clap(default_value = "3000", long, short, env)]
port: u16,
#[clap(default_value = "9000", long, short, env)]
#[clap(default_value = "9000", long, env)]
prometheus_port: u16,
/// Enable JSON output format.

View File

@ -37,7 +37,7 @@ struct Args {
hostname: String,
#[clap(default_value = "3000", long, short, env)]
port: u16,
#[clap(default_value = "9000", long, short, env)]
#[clap(default_value = "9000", long, env)]
prometheus_port: u16,
#[clap(long, env, required = true)]
tokenizer_name: String,

View File

@ -36,7 +36,7 @@ struct Args {
hostname: String,
#[clap(default_value = "3000", long, short, env)]
port: u16,
#[clap(default_value = "9000", long, short, env)]
#[clap(default_value = "9000", long, env)]
prometheus_port: u16,
#[clap(default_value = "/tmp/text-generation-server-0", long, env)]
master_shard_uds_path: String,

View File

@ -36,7 +36,7 @@ struct Args {
hostname: String,
#[clap(default_value = "3000", long, short, env)]
port: u16,
#[clap(default_value = "9000", long, short, env)]
#[clap(default_value = "9000", long, env)]
prometheus_port: u16,
#[clap(default_value = "/tmp/text-generation-server-0", long, env)]
master_shard_uds_path: String,

View File

@ -254,7 +254,7 @@ Options:
```
## PROMETHEUS_PORT
```shell
-p, --prometheus-port <PROMETHEUS_PORT>
--prometheus-port <PROMETHEUS_PORT>
The Prometheus port to listen on
[env: PROMETHEUS_PORT=]

View File

@ -774,7 +774,7 @@ struct Args {
port: u16,
/// The Prometheus port to listen on.
#[clap(default_value = "9000", long, short, env)]
#[clap(default_value = "9000", long, env)]
prometheus_port: u16,
/// The name of the socket for gRPC communication between the webserver