# HG changeset patch # User Chris Cannam # Date 1287407666 -3600 # Node ID cd1fa6387cb9353e6c1dca53beaf1943aa566767 # Parent 29efe322ab47e97c623457e493d737040cb3171d * Fix csv-one-file option diff -r 29efe322ab47 -r cd1fa6387cb9 transform/FileFeatureWriter.cpp --- a/transform/FileFeatureWriter.cpp Mon Oct 18 12:42:42 2010 +0100 +++ b/transform/FileFeatureWriter.cpp Mon Oct 18 14:14:26 2010 +0100 @@ -90,7 +90,11 @@ if (m_support & SupportOneFileTotal) { if (m_support & ~SupportOneFileTotal) { // not only option p.name = "one-file"; - p.description = "Write all transform results for all input files into the single named output file."; + if (m_support & SupportOneFilePerTrack) { + p.description = "Write all transform results for all input files into the single named output file. (The default is to create one output file per input audio file, and write all transform results for that input into it.)"; + } else { + p.description = "Write all transform results for all input files into the single named output file. (The default is to create a separate output file for each combination of input audio file and transform.)"; + } p.hasArg = true; pl.push_back(p); } @@ -132,11 +136,16 @@ } else if (i->first == "one-file") { if (m_support & SupportOneFileTotal) { if (m_support & ~SupportOneFileTotal) { // not only option - if (m_manyFiles) { - cerr << "FileFeatureWriter::setParameters: WARNING: Both many-files and one-file parameters provided, ignoring one-file" << endl; - } else { + // No, we cannot do this test because m_manyFiles + // may be on by default (for any FileFeatureWriter + // that supports OneFilePerTrackTransform but not + // OneFilePerTrack), so we need to be able to + // override it +// if (m_manyFiles) { +// cerr << "FileFeatureWriter::setParameters: WARNING: Both many-files and one-file parameters provided, ignoring one-file" << endl; +// } else { m_singleFileName = i->second.c_str(); - } +// } } } } else if (i->first == "stdout") {