[Build] Update help and flags

This commit is contained in:
Matt Nadareski
2016-09-02 14:41:36 -07:00
parent e40d0fcada
commit d1a2314462
4 changed files with 18 additions and 35 deletions

View File

@@ -126,6 +126,10 @@ namespace SabreTools
case "miss": case "miss":
miss = true; miss = true;
break; break;
case "-only-needed":
case "--only-needed":
onlyNeeded = true;
break;
case "purge-backup": case "purge-backup":
purgeBackup = true; purgeBackup = true;
break; break;
@@ -148,27 +152,6 @@ namespace SabreTools
{ {
newdat = temparg.Split('=')[1]; newdat = temparg.Split('=')[1];
} }
else if (temparg.StartsWith("-only-needed="))
{
string temp = temparg.Split('=')[1].ToLowerInvariant();
switch (temp)
{
case "true":
onlyNeeded = true;
break;
case "false":
onlyNeeded = false;
break;
default:
_logger.Error("Invalid value detected: " + temp);
Console.WriteLine();
Build.Help();
Console.WriteLine();
_logger.Error("Invalid value detected: " + temp);
_logger.Close();
return;
}
}
else if (temparg.StartsWith("-out=") || temparg.StartsWith("--out=")) else if (temparg.StartsWith("-out=") || temparg.StartsWith("--out="))
{ {
outdat = temparg.Split('=')[1]; outdat = temparg.Split('=')[1];

View File

@@ -80,23 +80,23 @@ namespace SabreTools.Helper
helptext.Add(""); helptext.Add("");
helptext.Add("Options:"); helptext.Add("Options:");
helptext.Add(" -?, -h, --help Show this help"); helptext.Add(" -?, -h, --help Show this help");
helptext.Add(" archive Adds ROM files from the specified directories to the ROM archive"); helptext.Add(" archive Adds ROM files from the specified directories to depot");
helptext.Add(" -only-needed=(true|false) only archive ROM files actually referenced by DAT files from the DAT index"); helptext.Add(" -only-needed Only archive ROM files in database");
helptext.Add(" build For each specified DAT file it creates the torrentzip files"); helptext.Add(" build For each specified DAT file it creates TZip files");
helptext.Add(" dbstats Prints db stats"); helptext.Add(" dbstats Prints db stats");
helptext.Add(" diffdat Creates a DAT file with those entries that are in a new DAT"); helptext.Add(" diffdat Creates a DAT file for entries found in the new DAT");
helptext.Add(" -new= DAT to compare to"); helptext.Add(" -new= DAT to compare to");
helptext.Add(" dir2dat Creates a DAT file for the specified input directory"); helptext.Add(" dir2dat Creates a DAT file for the specified input directory");
helptext.Add(" -out= Filename to save out to"); helptext.Add(" -out= Filename to save out to");
helptext.Add(" fixdat For each specified DAT file it creates a fix DAT"); helptext.Add(" fixdat For each specified DAT file it creates a fix DAT");
helptext.Add(" lookup For each specified hash it looks up any available information"); helptext.Add(" lookup For each specified hash, look up available information");
helptext.Add(" memstats Prints memory stats"); helptext.Add(" memstats Prints memory stats");
helptext.Add(" miss For each specified DAT file it creates a miss file and a have file"); helptext.Add(" miss For each specified DAT file, create miss and have file");
helptext.Add(" progress Shows progress of the currently running command"); helptext.Add(" progress Shows progress of currently running command [OBSOLETE]");
helptext.Add(" purge-backup Moves DAT index entries for orphaned DATs"); helptext.Add(" purge-backup Moves DAT index entries for orphaned DATs");
helptext.Add(" purge-delete Deletes DAT index entries for orphaned DATs"); helptext.Add(" purge-delete Deletes DAT index entries for orphaned DATs");
helptext.Add(" refresh-dats Refreshes the DAT index from the files in the DAT master directory tree"); helptext.Add(" refresh-dats Refreshes the DAT index from the files in the DAT root");
helptext.Add(" shutdown Gracefully shuts down server"); helptext.Add(" shutdown Gracefully shuts down server [OBSOLETE]");
break; break;
case "SabreTools": case "SabreTools":
helptext.Add(Resources.Resources.SabreTools_Name + " - " + Resources.Resources.SabreTools_Desc); helptext.Add(Resources.Resources.SabreTools_Name + " - " + Resources.Resources.SabreTools_Desc);

View File

@@ -88,7 +88,7 @@ namespace SabreTools.Helper.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to C#port of the Romba rom management tool. /// Looks up a localized string similar to C# port of the Romba rom management tool.
/// </summary> /// </summary>
public static string RombaSharp_Desc { public static string RombaSharp_Desc {
get { get {

View File

@@ -127,7 +127,7 @@
<value>Headerer</value> <value>Headerer</value>
</data> </data>
<data name="RombaSharp_Desc" xml:space="preserve"> <data name="RombaSharp_Desc" xml:space="preserve">
<value>C#port of the Romba rom management tool</value> <value>C# port of the Romba rom management tool</value>
</data> </data>
<data name="RombaSharp_Name" xml:space="preserve"> <data name="RombaSharp_Name" xml:space="preserve">
<value>RombaSharp</value> <value>RombaSharp</value>