Wire new help text file to the parameter.
This commit is contained in:
parent
6b46344d2f
commit
524df8cbd7
2 changed files with 14 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Windows.Markup;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
|
||||
namespace SpritePacker
|
||||
{
|
||||
|
@ -15,7 +16,18 @@ namespace SpritePacker
|
|||
switch(args[i])
|
||||
{
|
||||
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;
|
||||
case "--version":
|
||||
Console.WriteLine("Version text coming soon!");
|
||||
|
|
Loading…
Reference in a new issue