[SabreTools] Promote TSV output to same level as format

This commit is contained in:
Matt Nadareski
2016-08-23 15:00:36 -07:00
parent a0881d5d60
commit 12f1c3aa90

View File

@@ -588,7 +588,7 @@ namespace SabreTools
// If more than one switch is enabled, show the help screen // If more than one switch is enabled, show the help screen
if (!(add ^ datfromdir ^ extsplit ^ generate ^ genall ^ hashsplit ^ import ^ listsrc ^ listsys ^ if (!(add ^ datfromdir ^ extsplit ^ generate ^ genall ^ hashsplit ^ import ^ listsrc ^ listsys ^
(merge || diff || update || outputCMP || outputRC || outputSD || outputXML || outputMiss || trim) ^ (merge || diff || update || outputCMP || outputRC || outputSD || outputXML || outputMiss || tsv || trim) ^
offlineMerge ^ rem ^ stats)) offlineMerge ^ rem ^ stats))
{ {
_logger.Error("Only one feature switch is allowed at a time"); _logger.Error("Only one feature switch is allowed at a time");
@@ -598,7 +598,7 @@ namespace SabreTools
} }
// If a switch that requires a filename is set and no file is, show the help screen // If a switch that requires a filename is set and no file is, show the help screen
if (inputs.Count == 0 && (update || outputMiss || outputCMP || outputRC || outputSD if (inputs.Count == 0 && (update || (outputMiss || tsv) || outputCMP || outputRC || outputSD
|| outputXML || extsplit || hashsplit || datfromdir || (merge || diff) || stats || trim)) || outputXML || extsplit || hashsplit || datfromdir || (merge || diff) || stats || trim))
{ {
_logger.Error("This feature requires at least one input"); _logger.Error("This feature requires at least one input");
@@ -642,7 +642,7 @@ namespace SabreTools
} }
// Convert, update, merge, diff, and filter a DAT or folder of DATs // Convert, update, merge, diff, and filter a DAT or folder of DATs
else if (update || outputCMP || outputMiss || outputRC || outputSD || outputXML || merge || diff) else if (update || outputCMP || outputMiss || tsv || outputRC || outputSD || outputXML || merge || diff)
{ {
InitUpdate(inputs, filename, name, description, rootdir, category, version, date, author, email, homepage, url, comment, header, InitUpdate(inputs, filename, name, description, rootdir, category, version, date, author, email, homepage, url, comment, header,
superdat, forcemerge, forcend, forcepack, outputCMP, outputMiss, outputRC, outputSD, outputXML, usegame, prefix, superdat, forcemerge, forcend, forcepack, outputCMP, outputMiss, outputRC, outputSD, outputXML, usegame, prefix,