Update usage and add actual d-parsing to touch(1)

This commit is contained in:
FRIGN 2015-02-19 18:58:19 +01:00
parent 14b1db88bf
commit 0f4192e6b2

View File

@ -102,7 +102,7 @@ parsetime(char *str, time_t current)
static void static void
usage(void) usage(void)
{ {
eprintf("usage: %s [-acm] [-r ref_file | -t timestamp] file ...\n", argv0); eprintf("usage: %s [-acm] [-d time | -r ref_file | -t time | -T time] file ...\n", argv0);
} }
int int
@ -119,6 +119,9 @@ main(int argc, char *argv[])
case 'c': case 'c':
cflag = 1; cflag = 1;
break; break;
case 'd':
t = parsetime(EARGF(usage()), t);
break;
case 'm': case 'm':
mflag = 1; mflag = 1;
break; break;