summaryrefslogtreecommitdiff
path: root/src/touch.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-10-29 19:29:19 +0000
committerJim Meyering <jim@meyering.net>1995-10-29 19:29:19 +0000
commit8b92864e1dd58318bd0a434c5bd453b9c1ef5d08 (patch)
treea531bc273eb1568143e7f05c9eb65b46755b5799 /src/touch.c
parentd97d668b69ce309887ff586a9d6c02686f5eb48e (diff)
downloadcoreutils-8b92864e1dd58318bd0a434c5bd453b9c1ef5d08.tar.xz
Rename --file to --reference.
Leave --file as an alias, for now. It will be removed later. (usage): Update, but don't mention --file.
Diffstat (limited to 'src/touch.c')
-rw-r--r--src/touch.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/touch.c b/src/touch.c
index 90dd31010..2e8b6c051 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\