|
|
94738b |
commit 6c7007a6a2662f12eca3b8008651e4d8b0de6539
|
|
|
94738b |
Author: Miroslav Lichvar <mlichvar@redhat.com>
|
|
|
94738b |
Date: Fri Apr 5 15:58:53 2013 +0200
|
|
|
94738b |
|
|
|
94738b |
add missing whiptail options to help and man page
|
|
|
94738b |
|
|
|
94738b |
diff --git a/whiptail.1 b/whiptail.1
|
|
|
94738b |
index 41ab640..ea212a8 100644
|
|
|
94738b |
--- a/whiptail.1
|
|
|
94738b |
+++ b/whiptail.1
|
|
|
94738b |
@@ -87,7 +87,7 @@ The dialog box will open with the cursor over the
|
|
|
94738b |
Set the default item in a menu box.
|
|
|
94738b |
Normally the first item in the box is the default.
|
|
|
94738b |
.TP
|
|
|
94738b |
-.B \-\-fb
|
|
|
94738b |
+\fB\-\-fb\fR, \fB\-\-fullbuttons\fR
|
|
|
94738b |
Use full buttons. (By default,
|
|
|
94738b |
.B whiptail
|
|
|
94738b |
uses compact buttons).
|
|
|
94738b |
@@ -117,6 +117,9 @@ The menu, checklist and radiolist widgets will display tags only, not
|
|
|
94738b |
the item strings. The menu widget still needs some items specified,
|
|
|
94738b |
but checklist and radiolist expect only tag and status.
|
|
|
94738b |
.TP
|
|
|
94738b |
+.B \-\-notags
|
|
|
94738b |
+Don't display tags in the menu, checklist and radiolist widgets.
|
|
|
94738b |
+.TP
|
|
|
94738b |
.BI \-\-separate\-output
|
|
|
94738b |
For checklist widgets, output result one line at a time, with no
|
|
|
94738b |
quoting. This facilitates parsing by another program.
|
|
|
94738b |
@@ -144,6 +147,12 @@ Force the display of a vertical scrollbar.
|
|
|
94738b |
.BI \-\-topleft
|
|
|
94738b |
Put window in top-left corner.
|
|
|
94738b |
.TP
|
|
|
94738b |
+\fB\-h\fR, \fB\-\-help\fR
|
|
|
94738b |
+Print a help message and exit.
|
|
|
94738b |
+.TP
|
|
|
94738b |
+\fB\-v\fR, \fB\-\-version\fR
|
|
|
94738b |
+Print version information and exit.
|
|
|
94738b |
+.TP
|
|
|
94738b |
.B Box Options
|
|
|
94738b |
.TP
|
|
|
94738b |
.BI \-\-yesno " text height width"
|
|
|
94738b |
diff --git a/whiptail.c b/whiptail.c
|
|
|
94738b |
index a631bc4..7932d8b 100644
|
|
|
94738b |
--- a/whiptail.c
|
|
|
94738b |
+++ b/whiptail.c
|
|
|
94738b |
@@ -51,19 +51,22 @@ static void usage(int err) {
|
|
|
94738b |
"\t--clear clear screen on exit\n"
|
|
|
94738b |
"\t--defaultno default no button\n"
|
|
|
94738b |
"\t--default-item <string> set default string\n"
|
|
|
94738b |
- "\t--fb use full buttons\n"
|
|
|
94738b |
+ "\t--fb, --fullbuttons use full buttons\n"
|
|
|
94738b |
"\t--nocancel no cancel button\n"
|
|
|
94738b |
"\t--yes-button <text> set text of yes button\n"
|
|
|
94738b |
"\t--no-button <text> set text of no button\n"
|
|
|
94738b |
"\t--ok-button <text> set text of ok button\n"
|
|
|
94738b |
"\t--cancel-button <text> set text of cancel button\n"
|
|
|
94738b |
- "\t--noitem display tags only\n"
|
|
|
94738b |
+ "\t--noitem don't display items\n"
|
|
|
94738b |
+ "\t--notags don't display tags\n"
|
|
|
94738b |
"\t--separate-output output one line at a time\n"
|
|
|
94738b |
"\t--output-fd <fd> output to fd, not stdout\n"
|
|
|
94738b |
"\t--title <title> display title\n"
|
|
|
94738b |
"\t--backtitle <backtitle> display backtitle\n"
|
|
|
94738b |
"\t--scrolltext force vertical scrollbars\n"
|
|
|
94738b |
- "\t--topleft put window in top-left corner\n\n"));
|
|
|
94738b |
+ "\t--topleft put window in top-left corner\n"
|
|
|
94738b |
+ "\t-h, --help print this message\n"
|
|
|
94738b |
+ "\t-v, --version print version information\n\n"));
|
|
|
94738b |
exit(err ? DLG_ERROR : 0 );
|
|
|
94738b |
}
|
|
|
94738b |
|