From fd44e1ef17e43f8c8146f7877de1ab04519254f3 Mon Sep 17 00:00:00 2001 From: Jeff Bailey Date: Sat, 4 Apr 2026 09:44:04 +0000 Subject: [PATCH] tar: use "tar (uutils)" as the display name in clap Replace `uucore::util_name()` (argv[0]) with the literal string "tar (uutils)" as the clap Command name. This gives a consistent, recognisable program name in --help output regardless of what the binary was invoked as. Closes #150 --- src/uu/tar/src/tar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uu/tar/src/tar.rs b/src/uu/tar/src/tar.rs index 483038c..16e29d1 100644 --- a/src/uu/tar/src/tar.rs +++ b/src/uu/tar/src/tar.rs @@ -180,7 +180,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> { #[allow(clippy::cognitive_complexity)] pub fn uu_app() -> Command { - Command::new(uucore::util_name()) + Command::new("tar (uutils)") .version(crate_version!()) .about(ABOUT) .override_usage(format_usage(USAGE))