summaryrefslogtreecommitdiffstats
path: root/usr.bin/dpv/dpv.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/dpv/dpv.c')
-rw-r--r--usr.bin/dpv/dpv.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/dpv/dpv.c b/usr.bin/dpv/dpv.c
index 4e006f6..2bab727 100644
--- a/usr.bin/dpv/dpv.c
+++ b/usr.bin/dpv/dpv.c
@@ -271,7 +271,7 @@ main(int argc, char *argv[])
* Process command-line options
*/
while ((ch = getopt(argc, argv,
- "a:b:dDhi:I:lL:mn:No:p:P:t:TU:wx:X")) != -1) {
+ "a:b:dDhi:I:klL:mn:No:p:P:t:TU:wx:X")) != -1) {
switch(ch) {
case 'a': /* additional message text to append */
if (config->aprompt == NULL) {
@@ -307,6 +307,9 @@ main(int argc, char *argv[])
case 'I': /* status line format string for many-files */
config->status_many = optarg;
break;
+ case 'k': /* keep tite */
+ config->keep_tite = TRUE;
+ break;
case 'l': /* Line mode */
line_mode = TRUE;
break;
@@ -467,7 +470,8 @@ main(int argc, char *argv[])
if (dpv(config, file_list) != 0 && debug)
warnx("dpv(3) returned error!?");
- end_dialog();
+ if (!config->keep_tite)
+ end_dialog();
dpv_free();
exit(EXIT_SUCCESS);
OpenPOWER on IntegriCloud