mirror of
https://github.com/pnpm/pnpm.git
synced 2026-06-28 09:55:39 -04:00
refactor(pnpr): source --listen default from Config::DEFAULT_LISTEN (#12629)
Address CodeRabbit review: instead of duplicating the default listen address as a string literal in the CLI arg, reference the existing Config::DEFAULT_LISTEN constant so the CLI default and the config default cannot drift apart.
This commit is contained in:
@@ -14,7 +14,7 @@ struct Args {
|
||||
config: Option<PathBuf>,
|
||||
|
||||
/// Address to bind to.
|
||||
#[arg(long, default_value = "127.0.0.1:7677")]
|
||||
#[arg(long, default_value = Config::DEFAULT_LISTEN)]
|
||||
listen: SocketAddr,
|
||||
|
||||
/// Override the storage path from the loaded config (bundled or
|
||||
|
||||
Reference in New Issue
Block a user