Enable mplex by default and change --enable-mplex to take bool (#9476)

Enable Mplex by default, and let `--enable-mplex` take a bool argument.


Co-Authored-By: Daniel Knopik <daniel@dknopik.de>

Co-Authored-By: Michael Sproul <michael@sigmaprime.io>

Co-Authored-By: Michael Sproul <michaelsproul@users.noreply.github.com>
This commit is contained in:
Daniel Knopik
2026-06-16 08:53:25 +02:00
committed by GitHub
parent 58e35bc96f
commit 41dff2d965
5 changed files with 54 additions and 11 deletions

View File

@@ -390,9 +390,12 @@ pub fn cli_app() -> Command {
.arg(
Arg::new("enable-mplex")
.long("enable-mplex")
.action(ArgAction::SetTrue)
.help_heading(FLAG_HEADER)
.help("Enables mplex multiplexer alongside yamux. Yamux is preferred when both are available.")
.value_name("BOOLEAN")
.action(ArgAction::Set)
.num_args(0..=1)
.default_value("true")
.default_missing_value("true")
.help("Enables the mplex multiplexer alongside yamux. Yamux is preferred when both are available. Enabled by default; set to \"false\" to disable.")
.display_order(0)
)
.arg(