pipe mode option -p

This commit is contained in:
h_vogt 2009-12-07 21:42:09 +00:00
parent 71104809b2
commit 400100d9c6
2 changed files with 10 additions and 2 deletions

View File

@ -1,5 +1,6 @@
2009-12-07 Holger Vogt
* windisp.c: allow aeeting of linewidth by keyboard entry
* windisp.c: allow setting of linewidth by keyboard "set xbrushwidth=3"
* main.c: option -p "run in pipe mode" added (patch 1465202)
2009-12-05: Dietmar Warning
* inpcom.c, line 3090: allow parameter without curly braces in subckt definition

View File

@ -579,6 +579,7 @@ show_help(void)
" -i, --interactive run in interactive mode\n"
" -n, --no-spiceinit don't load the local or user's config file\n"
" -o, --output=FILE set the outputfile\n"
" -p, --pipe run in I/O pipe mode\n"
" -q, --completion activate command completion\n"
" -r, --rawfile=FILE set the rawfile output\n"
" -s, --server run spice as a server process\n"
@ -785,6 +786,7 @@ main(int argc, char **argv)
{"interactive", 0, 0, 'i'},
{"no-spiceinit", 0, 0, 'n'},
{"output", 1, 0, 'o'},
{"pipe", 0, 0, 'p'},
{"completion", 0, 0, 'q'},
{"rawfile", 1, 0, 'r'},
{"server", 0, 0, 's'},
@ -792,7 +794,7 @@ main(int argc, char **argv)
{0, 0, 0, 0}
};
c = getopt_long (argc, argv, "hvbac:ihno:qr:st:",
c = getopt_long (argc, argv, "hvbac:ihno:pqr:st:",
long_options, &option_index);
if (c == -1)
break;
@ -852,6 +854,11 @@ main(int argc, char **argv)
}
break;
case 'p': /* Run in pipe mode */
iflag = TRUE;
istty = TRUE;
break;
case 'q': /* Command completion */
qflag = TRUE;
break;