-stdin parameter

This commit is contained in:
Ruslan Kuchumov 2014-07-28 18:48:07 +00:00
parent 3f54fab5f4
commit 14d866e8a2
2 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,7 @@
protocol over TCP (-tcp port [-tcppassword password])
- Added ability to send cations to the server described above or to the
online repository (-sendto host[:port])
- Added -stdin parameter for reading input stream from standart input
0.70 - GSOC
-----------

View File

@ -408,6 +408,7 @@ void usage (void)
mprint (" -stdout: Write output to stdout (console) instead of file. If\n");
mprint (" stdout is used, then -o, -o1 and -o2 can't be used. Also\n");
mprint (" -stdout will redirect all messages to stderr (error).\n\n");
mprint (" -stdin: Reads input from stdin (console) instead of file.\n");
mprint ("You can pass as many input files as you need. They will be processed in order.\n");
mprint ("If a file name is suffixed by +, ccextractor will try to follow a numerical\n");
mprint ("sequence. For example, DVD001.VOB+ means DVD001.VOB, DVD002.VOB and so on\n");
@ -892,7 +893,7 @@ void parse_parameters (int argc, char *argv[])
// Parse parameters
for (int i=1; i<argc; i++)
{
if (strcmp (argv[i], "-")==0)
if (strcmp (argv[i], "-")==0 || strcmp(argv[i], "-stdin") == 0)
{
ccx_options.input_source=CCX_DS_STDIN;