summaryrefslogtreecommitdiff
path: root/usr.bin/touch/touch.c
diff options
context:
space:
mode:
authorIgor Sobrado <sobrado@cvs.openbsd.org>2007-08-06 19:16:08 +0000
committerIgor Sobrado <sobrado@cvs.openbsd.org>2007-08-06 19:16:08 +0000
commitd569c9b0c585d1ada0bb33679611b77eba528140 (patch)
treeaf2426db3e795320f587d155021169a3f1700b3e /usr.bin/touch/touch.c
parent602a7968e47e34fd38658741b7b66d3c9115f9cf (diff)
the ellipsis is not an optional argument; while here, sync the usage
and synopsis of commands lots of good ideas by jmc@ ok jmc@
Diffstat (limited to 'usr.bin/touch/touch.c')
-rw-r--r--usr.bin/touch/touch.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/touch/touch.c b/usr.bin/touch/touch.c
index f8f9ccf4c94..45d6ab23d26 100644
--- a/usr.bin/touch/touch.c
+++ b/usr.bin/touch/touch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: touch.c,v 1.16 2007/06/18 11:20:58 millert Exp $ */
+/* $OpenBSD: touch.c,v 1.17 2007/08/06 19:16:06 sobrado Exp $ */
/* $NetBSD: touch.c,v 1.11 1995/08/31 22:10:06 jtc Exp $ */
/*
@@ -296,6 +296,7 @@ usage(void)
extern char *__progname;
(void)fprintf(stderr,
- "usage: %s [-acm] [-r file] [-t time] file ...\n", __progname);
+ "usage: %s [-acm] [-r file] [-t [[CC]YY]MMDDhhmm[.SS]] file ...\n",
+ __progname);
exit(1);
}