From 48643574868e76bc292e116b098090f5a5f6e47c Mon Sep 17 00:00:00 2001 From: Nils Andreas Svee Date: Tue, 15 Sep 2026 12:32:34 +0700 Subject: [PATCH] refactor(app): remove undocumented irttd applet alias --- crates/irtt-app/src/applet.rs | 3 ++- docs/irtt-rs.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/irtt-app/src/applet.rs b/crates/irtt-app/src/applet.rs index aa89942..f2459d6 100644 --- a/crates/irtt-app/src/applet.rs +++ b/crates/irtt-app/src/applet.rs @@ -22,7 +22,7 @@ pub fn detect_applet_from_argv0(argv0: &str) -> Option { match applet_basename(argv0) { "irtt-client" => Some(RequestedApplet::Client), "irtt-tui" => Some(RequestedApplet::Tui), - "irttd" | "irtt-server" => Some(RequestedApplet::Server), + "irtt-server" => Some(RequestedApplet::Server), "irtt-rs" => None, _ => None, } @@ -199,6 +199,7 @@ mod tests { detect_applet_from_argv0("irtt-server"), Some(RequestedApplet::Server) ); + assert_eq!(detect_applet_from_argv0("irttd"), None); assert_eq!(detect_applet_from_argv0("irtt-rs"), None); assert_eq!(detect_applet_from_argv0("custom-name"), None); } diff --git a/docs/irtt-rs.md b/docs/irtt-rs.md index 32ddfad..8052dfc 100644 --- a/docs/irtt-rs.md +++ b/docs/irtt-rs.md @@ -31,7 +31,7 @@ The build also produces dedicated binaries: `irtt-client`, `irtt-tui`, and what it is invoked or copied as — it does not consult argv0 dispatch logic. `irtt-rs` itself inspects argv0 first: if invoked (or symlinked/copied) under -one of the recognized applet names — `irtt-client`, `irtt-tui`, `irttd`, or +one of the recognized applet names — `irtt-client`, `irtt-tui`, or `irtt-server` — it runs that applet directly, without needing a subcommand. Any other name starting with `irtt-` (other than `irtt-rs` itself) is rejected as an unknown applet name before subcommand parsing is even