diff --git a/touch.c b/touch.c index 70adc31..8c488f1 100644 --- a/touch.c +++ b/touch.c @@ -102,7 +102,7 @@ parsetime(char *str, time_t current) static 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 @@ -119,6 +119,9 @@ main(int argc, char *argv[]) case 'c': cflag = 1; break; + case 'd': + t = parsetime(EARGF(usage()), t); + break; case 'm': mflag = 1; break;