diff --git a/ChangeLog b/ChangeLog index 24c084a28..13837d720 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/src/main.c b/src/main.c index 5d31db089..dbeccb45f 100644 --- a/src/main.c +++ b/src/main.c @@ -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;