Wire new help text file to the parameter.

This commit is contained in:
Starbeamrainbowlabs 2016-05-18 21:12:27 +01:00
parent 6b46344d2f
commit 524df8cbd7
2 changed files with 14 additions and 2 deletions

View file

@ -2,6 +2,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Windows.Markup; using System.Windows.Markup;
using System.IO; using System.IO;
using System.Reflection;
namespace SpritePacker namespace SpritePacker
{ {
@ -15,7 +16,18 @@ namespace SpritePacker
switch(args[i]) switch(args[i])
{ {
case "--help": case "--help":
Console.WriteLine("Help text coming soon!"); /*
string[] resFiles = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceNames();
foreach (string str in resFiles)
Console.WriteLine("[{0}]", str);
*/
Assembly asm = Assembly.GetExecutingAssembly();
Stream stream = asm.GetManifestResourceStream("SpritePacker.Help.txt");
StreamReader source = new StreamReader(stream);
Console.Write(source.ReadToEnd());
source.Dispose();
stream.Dispose();
return; return;
case "--version": case "--version":
Console.WriteLine("Version text coming soon!"); Console.WriteLine("Version text coming soon!");