Skip to content

Commit cc4b584

Browse files
committed
fix: fix prometheus_port CLI short arg conflict
The short arg of `prometheus_port` conflicts with `port`. Remove the short arg variant. Fixes huggingface#3205
1 parent c458d21 commit cc4b584

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

backends/llamacpp/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ struct Args {
119119
#[clap(default_value = "3000", long, short, env)]
120120
port: u16,
121121

122-
#[clap(default_value = "9000", long, short, env)]
122+
#[clap(default_value = "9000", long, env)]
123123
prometheus_port: u16,
124124

125125
/// Enable JSON output format.

backends/trtllm/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct Args {
3737
hostname: String,
3838
#[clap(default_value = "3000", long, short, env)]
3939
port: u16,
40-
#[clap(default_value = "9000", long, short, env)]
40+
#[clap(default_value = "9000", long, env)]
4141
prometheus_port: u16,
4242
#[clap(long, env, required = true)]
4343
tokenizer_name: String,

backends/v2/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ struct Args {
3636
hostname: String,
3737
#[clap(default_value = "3000", long, short, env)]
3838
port: u16,
39-
#[clap(default_value = "9000", long, short, env)]
39+
#[clap(default_value = "9000", long, env)]
4040
prometheus_port: u16,
4141
#[clap(default_value = "/tmp/text-generation-server-0", long, env)]
4242
master_shard_uds_path: String,

backends/v3/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ struct Args {
3636
hostname: String,
3737
#[clap(default_value = "3000", long, short, env)]
3838
port: u16,
39-
#[clap(default_value = "9000", long, short, env)]
39+
#[clap(default_value = "9000", long, env)]
4040
prometheus_port: u16,
4141
#[clap(default_value = "/tmp/text-generation-server-0", long, env)]
4242
master_shard_uds_path: String,

docs/source/reference/launcher.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ Options:
254254
```
255255
## PROMETHEUS_PORT
256256
```shell
257-
-p, --prometheus-port <PROMETHEUS_PORT>
257+
--prometheus-port <PROMETHEUS_PORT>
258258
The Prometheus port to listen on
259259

260260
[env: PROMETHEUS_PORT=]

launcher/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ struct Args {
774774
port: u16,
775775

776776
/// The Prometheus port to listen on.
777-
#[clap(default_value = "9000", long, short, env)]
777+
#[clap(default_value = "9000", long, env)]
778778
prometheus_port: u16,
779779

780780
/// The name of the socket for gRPC communication between the webserver

0 commit comments

Comments
 (0)