1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

fix/touch ~ correct usage error display text

This commit is contained in:
Roy Ivy III 2023-01-08 12:40:27 -06:00
parent d78e1e7399
commit 3d93e25160

View file

@ -71,8 +71,10 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
let files = matches.get_many::<OsString>(ARG_FILES).ok_or_else(|| { let files = matches.get_many::<OsString>(ARG_FILES).ok_or_else(|| {
USimpleError::new( USimpleError::new(
1, 1,
r##"missing file operand format!(
Try 'touch --help' for more information."##, "missing file operand\nTry '{} --help' for more information.",
uucore::execution_phrase()
),
) )
})?; })?;
let (mut atime, mut mtime) = let (mut atime, mut mtime) =