From 8041797958a159f6d01369a9011b2db3987721bf Mon Sep 17 00:00:00 2001 From: Lv Genggeng Date: Tue, 22 Mar 2022 19:59:50 +0800 Subject: [PATCH] add help opt cmdline Signed-off-by: Lv Genggeng --- add-help-opt.patch | 13 +++++++++++++ time.spec | 9 ++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 add-help-opt.patch diff --git a/add-help-opt.patch b/add-help-opt.patch new file mode 100644 index 0000000..00627ce --- /dev/null +++ b/add-help-opt.patch @@ -0,0 +1,13 @@ +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) diff --git a/time.spec b/time.spec index c04ac9d..fe105c5 100644 --- a/time.spec +++ b/time.spec @@ -1,10 +1,11 @@ Name: time Version: 1.9 -Release: 7 +Release: 8 Summary: Monitoring the system resources used by running program License: GPLv3+ and GFDL URL: http://www.gnu.org/software/%{name}/ Source0: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz +Patch0: add-help-opt.patch BuildRequires: autoconf automake bash coreutils gcc make texinfo sed @@ -39,6 +40,12 @@ make check %{?_smp_mflags} %{_infodir}/time.info* %changelog +* Tue Mar 22 2022 Lv Genggeng - 1.9-8 +- Type: enhancement +- ID: NA +- SUG: NA +- DESC: add help opt in cmdline + * Wed Jan 8 2020 openEuler Buildteam - 1.9-7 - Type: enhancement - ID: NA