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
This commit is contained in:
Jeff Bailey
2026-04-04 09:44:04 +00:00
committed by Daniel Hofstetter
parent 65cd987c74
commit fd44e1ef17
+1 -1
View File
@@ -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))