From 3d93e251609b89116163f1207dcb3e0929b172f4 Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Sun, 8 Jan 2023 12:40:27 -0600 Subject: [PATCH] fix/touch ~ correct usage error display text --- src/uu/touch/src/touch.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/uu/touch/src/touch.rs b/src/uu/touch/src/touch.rs index c898d8924..a50a00303 100644 --- a/src/uu/touch/src/touch.rs +++ b/src/uu/touch/src/touch.rs @@ -71,8 +71,10 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> { let files = matches.get_many::(ARG_FILES).ok_or_else(|| { USimpleError::new( 1, - r##"missing file operand -Try 'touch --help' for more information."##, + format!( + "missing file operand\nTry '{} --help' for more information.", + uucore::execution_phrase() + ), ) })?; let (mut atime, mut mtime) =