Skip to content

Commit

Permalink
feat: add -p as short option to --port
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Sep 19, 2024
1 parent c01d1af commit e3cd078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/serve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub struct Serve {
#[arg(short = 'A', long, env = "TRUNK_SERVE_PREFER_ADDRESS_FAMILY")]
pub prefer_address_family: Option<AddressFamily>,
/// The port to serve on [default: 8080]
#[arg(long, env = "TRUNK_SERVE_PORT")]
#[arg(short, long, env = "TRUNK_SERVE_PORT")]
pub port: Option<u16>,
/// The aliases to serve on
#[arg(long, env = "TRUNK_SERVE_ALIAS")]
Expand Down

0 comments on commit e3cd078

Please sign in to comment.