From 8b92864e1dd58318bd0a434c5bd453b9c1ef5d08 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 29 Oct 1995 19:29:19 +0000 Subject: [PATCH] Rename --file to --reference. Leave --file as an alias, for now. It will be removed later. (usage): Update, but don't mention --file. --- src/touch.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/touch.c b/src/touch.c index 90dd310105..2e8b6c051a 100644 --- a/src/touch.c +++ b/src/touch.c @@ -21,7 +21,7 @@ -d, --date=TIME Specify time and date in various formats. -f Ignored. -m, --time={mtime,modify} Change modification time only. - -r, --file=FILE Use the time and date of reference file FILE. + -r, --reference=FILE Use the time and date of reference file FILE. -t TIME Specify time and date in the form `MMDDhhmm[[CC]YY][.ss]'. @@ -107,6 +107,7 @@ static struct option const longopts[] = {"no-create", no_argument, 0, 'c'}, {"date", required_argument, 0, 'd'}, {"file", required_argument, 0, 'r'}, + {"reference", required_argument, 0, 'r'}, {"help", no_argument, &show_help, 1}, {"version", no_argument, &show_version, 1}, {0, 0, 0, 0} @@ -385,7 +386,7 @@ Update the access and modification times of each FILE to the current time.\n\ -d, --date=STRING parse STRING and use it instead of current time\n\ -f (ignored)\n\ -m change only the modification time\n\ - -r, --file=REFERENCE use this file's times instead of current time\n\ + -r, --reference=FILE use this file's times instead of current time\n\ -t STAMP use MMDDhhmm[[CC]YY][.ss] instead of current time\n\ --help display this help and exit\n\ --time=WORD access -a, atime -a, mtime -m, modify -m, use -a\n\ -- 2.39.5