[hackers] [sbase] Update usage and add actual d-parsing to touch(1) || FRIGN

From: <git_AT_suckless.org>
Date: Thu, 19 Feb 2015 19:00:50 +0100 (CET)

commit 4623902297689168187a437fa72054138e82dc74
Author: FRIGN <dev_AT_frign.de>
Date: Thu Feb 19 18:58:19 2015 +0100

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

diff --git a/touch.c b/touch.c
index 70adc31..8c488f1 100644
--- a/touch.c
+++ b/touch.c
_AT_@ -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
_AT_@ -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;
Received on Thu Feb 19 2015 - 19:00:50 CET

This archive was generated by hypermail 2.3.0 : Thu Feb 19 2015 - 19:12:11 CET