diff options
Diffstat (limited to 'miscutils/time.c')
-rw-r--r-- | miscutils/time.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/miscutils/time.c b/miscutils/time.c index 0ecdac1a6..65dbcdcf3 100644 --- a/miscutils/time.c +++ b/miscutils/time.c | |||
@@ -430,9 +430,10 @@ int time_main(int argc UNUSED_PARAM, char **argv) | |||
430 | OPT_f = (1 << 4), | 430 | OPT_f = (1 << 4), |
431 | }; | 431 | }; |
432 | 432 | ||
433 | opt_complementary = "-1"; /* at least one arg */ | ||
434 | /* "+": stop on first non-option */ | 433 | /* "+": stop on first non-option */ |
435 | opt = getopt32(argv, "+vpao:f:", &output_filename, &output_format); | 434 | opt = getopt32(argv, "^+" "vpao:f:" "\0" "-1"/*at least one arg*/, |
435 | &output_filename, &output_format | ||
436 | ); | ||
436 | argv += optind; | 437 | argv += optind; |
437 | if (opt & OPT_v) | 438 | if (opt & OPT_v) |
438 | output_format = long_format; | 439 | output_format = long_format; |