Mercurial > hg > svcore
diff transform/FileFeatureWriter.cpp @ 997:2104ea2204d2
Separate out stdout ability (not all writers that support one-file will necessarily want to support it, e.g. for binary formats)
author | Chris Cannam |
---|---|
date | Mon, 13 Oct 2014 10:56:16 +0100 |
parents | f5cd33909744 |
children | 694301cc71cc |
line wrap: on
line diff
--- a/transform/FileFeatureWriter.cpp Mon Oct 13 10:55:43 2014 +0100 +++ b/transform/FileFeatureWriter.cpp Mon Oct 13 10:56:16 2014 +0100 @@ -98,6 +98,8 @@ p.hasArg = true; pl.push_back(p); } + } + if (m_support & SupportStdOut) { p.name = "stdout"; p.description = "Write all transform results directly to standard output."; p.hasArg = false; @@ -149,7 +151,7 @@ } } } else if (i->first == "stdout") { - if (m_support & SupportOneFileTotal) { + if (m_support & SupportStdOut) { if (m_singleFileName != "") { SVDEBUG << "FileFeatureWriter::setParameters: WARNING: Both stdout and one-file provided, ignoring stdout" << endl; } else {