Skip to content

Commit c01d1af

Browse files
committed
chore: fix the CLI arg handling of "alias"
1 parent 3abc9ec commit c01d1af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cmd/serve.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ pub struct Serve {
2828
#[arg(long, env = "TRUNK_SERVE_PORT")]
2929
pub port: Option<u16>,
3030
/// The aliases to serve on
31-
#[arg(short, long, env = "TRUNK_SERVE_ALIAS")]
32-
pub aliases: Option<Vec<String>>,
31+
#[arg(long, env = "TRUNK_SERVE_ALIAS")]
32+
pub alias: Option<Vec<String>>,
3333
/// Open a browser tab once the initial build is complete [default: false]
3434
#[arg(long, env = "TRUNK_SERVE_OPEN")]
3535
#[arg(default_missing_value="true", num_args=0..=1)]
@@ -109,7 +109,7 @@ impl Serve {
109109
address,
110110
prefer_address_family,
111111
port,
112-
aliases,
112+
alias,
113113
open,
114114
proxy:
115115
ProxyArgs {
@@ -135,7 +135,7 @@ impl Serve {
135135

136136
config.serve.addresses = address.unwrap_or(config.serve.addresses);
137137
config.serve.port = port.unwrap_or(config.serve.port);
138-
config.serve.aliases = aliases.unwrap_or(config.serve.aliases);
138+
config.serve.aliases = alias.unwrap_or(config.serve.aliases);
139139
config.serve.open = open.unwrap_or(config.serve.open);
140140
config.serve.prefer_address_family =
141141
prefer_address_family.or(config.serve.prefer_address_family);

0 commit comments

Comments
 (0)