Browse Source

Wire new help text file to the parameter.

tags/v0.1
Starbeamrainbowlabs 3 years ago
parent
commit
524df8cbd7
2 changed files with 14 additions and 2 deletions
  1. 1
    1
      SpritePacker/Help.txt
  2. 13
    1
      SpritePacker/Program.cs

+ 1
- 1
SpritePacker/Help.txt View File

@@ -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

+ 13
- 1
SpritePacker/Program.cs View File

@@ -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…
Cancel
Save