time/add-help-opt.patch
Lv Genggeng 8041797958 add help opt cmdline
Signed-off-by: Lv Genggeng <lvgenggeng@uniontech.com>
2022-03-22 19:59:50 +08:00

14 lines
386 B
Diff

diff --git a/src/time.c b/src/time.c
index 7e07995..231e8cb 100644
--- a/src/time.c
+++ b/src/time.c
@@ -657,7 +657,7 @@ getargs (argc, argv)
if (format)
output_format = format;
- while ((optc = getopt_long (argc, argv, "+af:o:pqvV", longopts, (int *) 0))
+ while ((optc = getopt_long (argc, argv, "+af:ho:pqvV", longopts, (int *) 0))
!= EOF)
{
switch (optc)