diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-08-29 17:20:31 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-08-29 17:20:31 +0200 |
commit | f8d0a870a9eaa2faaf11b7ebf947da9714976518 (patch) | |
tree | 06f39aae524138e0098e2239aa8b4683f54c190d | |
parent | 002ea72b1e6d263d55cdf077400d046390ee387d (diff) |
use getopt with + hack to not reorder argv in glibc
-rw-r--r-- | snooze.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -242,7 +242,7 @@ int main(int argc, char *argv[]) minute[0] = '*'; second[0] = '*'; - while ((c = getopt(argc, argv, "D:W:H:M:S:T:R:d:m:ns:t:vw:")) != -1) + while ((c = getopt(argc, argv, "+D:W:H:M:S:T:R:d:m:ns:t:vw:")) != -1) switch(c) { case 'D': parse(optarg, dayofyear, sizeof dayofyear, -1); break; case 'W': parse(optarg, weekofyear, sizeof weekofyear, -1); break; |