time/add-help-opt.patch
Lv Genggeng 35137ab5b9 add help opt cmdline
Signed-off-by: Lv Genggeng <lvgenggeng@uniontech.com>
(cherry picked from commit 8041797958a159f6d01369a9011b2db3987721bf)
2022-03-31 10:39:51 +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)