mirror of
https://github.com/uutils/tar.git
synced 2026-06-10 16:14:35 -07:00
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:
committed by
Daniel Hofstetter
parent
65cd987c74
commit
fd44e1ef17
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user