!4 命令行添加帮助选项
From: @lvgenggeng Reviewed-by: @overweight Signed-off-by: @overweight
This commit is contained in:
commit
60fcab5666
13
add-help-opt.patch
Normal file
13
add-help-opt.patch
Normal file
@ -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)
|
||||
@ -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 <lvgenggeng@uniontech.com> - 1.9-8
|
||||
- Type: enhancement
|
||||
- ID: NA
|
||||
- SUG: NA
|
||||
- DESC: add help opt in cmdline
|
||||
|
||||
* Wed Jan 8 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.9-7
|
||||
- Type: enhancement
|
||||
- ID: NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user