added help for commands.

This commit is contained in:
2018-12-08 21:28:58 -06:00
parent d73db03c72
commit c17af2248a
2 changed files with 21 additions and 0 deletions

View File

@@ -10,6 +10,15 @@ namespace RecrownedAthenaeum.Tools.TextureAtlasTools
class TexturePackerCommand : ICommandEngineCommand
{
TexturePacker texturePacker;
public string Help(string argument)
{
return "Packs a given directory composed of png and jpg files into an atlas. Can also add 9patch properties.\n" +
"-i path for input directory containing the textures. Required." +
"-o path for output files. Should point to a non-existent file with no extension as the extension will be created for both the atlas definition file and texture file. Required.\n" +
"-9p can be used multiple times for defining a 9patch. This parameter requires a name, left patch, right patch, top patch, and bottom patch in the format name,a,b,c,d. Optional.";
}
public void Run(string[] arguments)
{
for (int i = 0; i < arguments.Length; i++)