1
0
Fork 0

Wire new help text file to the parameter.

Esse commit está contido em:
Starbeamrainbowlabs 2016-05-18 21:12:27 +01:00
commit 524df8cbd7
2 arquivos alterados com 14 adições e 2 exclusões

Ver arquivo

@ -6,4 +6,4 @@ Usage:
--help Shows this help message.
--version Shows the version information.
More information can be found at https://git.starbeamrainbowlabs.com/sbrl/SpritePacker
More information can be found at https://git.starbeamrainbowlabs.com/sbrl/SpritePacker

Ver arquivo

@ -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!");