[newt] add missing whiptail options to help and man page

Miroslav Lichvar mlichvar at fedoraproject.org
Fri Apr 5 14:11:38 UTC 2013


commit dbf1283e3397e4b71a820f8cdb56a38738ebf9db
Author: Miroslav Lichvar <mlichvar at redhat.com>
Date:   Fri Apr 5 16:09:08 2013 +0200

    add missing whiptail options to help and man page

 newt-options.patch |   72 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 newt.spec          |    2 +
 2 files changed, 74 insertions(+), 0 deletions(-)
---
diff --git a/newt-options.patch b/newt-options.patch
new file mode 100644
index 0000000..d359414
--- /dev/null
+++ b/newt-options.patch
@@ -0,0 +1,72 @@
+commit 6c7007a6a2662f12eca3b8008651e4d8b0de6539
+Author: Miroslav Lichvar <mlichvar at redhat.com>
+Date:   Fri Apr 5 15:58:53 2013 +0200
+
+    add missing whiptail options to help and man page
+
+diff --git a/whiptail.1 b/whiptail.1
+index 41ab640..ea212a8 100644
+--- a/whiptail.1
++++ b/whiptail.1
+@@ -87,7 +87,7 @@ The dialog box will open with the cursor over the
+ Set  the default item in a menu box.
+ Normally the first item in the box is the default.
+ .TP
+-.B \-\-fb
++\fB\-\-fb\fR, \fB\-\-fullbuttons\fR
+ Use full buttons. (By default, 
+ .B whiptail
+ uses compact buttons). 
+@@ -117,6 +117,9 @@ The menu, checklist and radiolist widgets will display tags only, not
+ the item strings. The menu widget still needs some items specified,
+ but checklist and radiolist expect only tag and status.
+ .TP
++.B \-\-notags
++Don't display tags in the menu, checklist and radiolist widgets.
++.TP
+ .BI \-\-separate\-output
+ For checklist widgets, output result one line at a time, with no
+ quoting.  This facilitates parsing by another program.
+@@ -144,6 +147,12 @@ Force the display of a vertical scrollbar.
+ .BI \-\-topleft
+ Put window in top-left corner.
+ .TP
++\fB\-h\fR, \fB\-\-help\fR
++Print a help message and exit.
++.TP
++\fB\-v\fR, \fB\-\-version\fR
++Print version information and exit.
++.TP
+ .B Box Options
+ .TP
+ .BI \-\-yesno " text height width"
+diff --git a/whiptail.c b/whiptail.c
+index a631bc4..7932d8b 100644
+--- a/whiptail.c
++++ b/whiptail.c
+@@ -51,19 +51,22 @@ static void usage(int err) {
+ 	       "\t--clear				clear screen on exit\n"
+ 	       "\t--defaultno			default no button\n"	
+ 	       "\t--default-item <string>		set default string\n"
+-	       "\t--fb				use full buttons\n"
++	       "\t--fb, --fullbuttons		use full buttons\n"
+ 	       "\t--nocancel			no cancel button\n"
+ 	       "\t--yes-button <text>		set text of yes button\n"
+ 	       "\t--no-button <text>		set text of no button\n"
+ 	       "\t--ok-button <text>		set text of ok button\n"
+ 	       "\t--cancel-button <text>		set text of cancel button\n"
+-	       "\t--noitem			display tags only\n"
++	       "\t--noitem			don't display items\n"
++	       "\t--notags			don't display tags\n"
+ 	       "\t--separate-output		output one line at a time\n"
+ 	       "\t--output-fd <fd>		output to fd, not stdout\n"
+ 	       "\t--title <title>			display title\n"
+ 	       "\t--backtitle <backtitle>		display backtitle\n"
+ 	       "\t--scrolltext			force vertical scrollbars\n"
+-	       "\t--topleft			put window in top-left corner\n\n"));
++	       "\t--topleft			put window in top-left corner\n"
++	       "\t-h, --help			print this message\n"
++	       "\t-v, --version			print version information\n\n"));
+     exit(err ? DLG_ERROR : 0 );
+ }
+ 
diff --git a/newt.spec b/newt.spec
index a392e54..cd2b96c 100644
--- a/newt.spec
+++ b/newt.spec
@@ -7,6 +7,7 @@ License: LGPLv2
 Group: System Environment/Libraries
 URL: https://fedorahosted.org/newt/
 Source: https://fedorahosted.org/released/newt/newt-%{version}.tar.gz
+Patch1: newt-options.patch
 BuildRequires: popt-devel python-devel slang-devel
 BuildRequires: docbook-utils
 Provides: snack = %{version}-%{release}
@@ -56,6 +57,7 @@ providing a python API for creating text mode ionterfaces.
 
 %prep
 %setup -q
+%patch1 -p1 -b .options
 
 %build
 # gpm support seems to smash the stack w/ we use help in anaconda??


More information about the scm-commits mailing list