Move help to a central location; update help

This commit is contained in:
Matt Nadareski
2016-04-06 14:19:01 -07:00
parent 656b5f23ea
commit 503b302828
5 changed files with 99 additions and 80 deletions

View File

@@ -20,7 +20,7 @@ namespace DatSplit
// If we don't have arguments, show help
if (args.Length == 0 && args.Length != 3)
{
Help();
Build.Help();
return;
}
@@ -158,10 +158,5 @@ namespace DatSplit
string outPathB = Path.GetFileNameWithoutExtension(_filename) + _extB + Path.GetExtension(_filename);
File.WriteAllText(outPathB, Style.Beautify(outDocB), Encoding.UTF8);
}
public static void Help()
{
Console.WriteLine("DatSplit.exe <filename> <ext> <ext>");
}
}
}