added help for commands.
This commit is contained in:
parent
d73db03c72
commit
c17af2248a
@ -6,6 +6,18 @@ namespace RecrownedAthenaeum.Tools.CommandProcessor
|
||||
{
|
||||
interface ICommandEngineCommand
|
||||
{
|
||||
/// <summary>
|
||||
/// Runs the command.
|
||||
/// </summary>
|
||||
/// <param name="arguments">Commands to be used. May be null.</param>
|
||||
void Run(string[] arguments);
|
||||
|
||||
/// <summary>
|
||||
/// Returns the help for the given argument.
|
||||
/// If no argument is given (null), then returns overall help statement.
|
||||
/// </summary>
|
||||
/// <param name="argument">The argument the help string is for. Can be null for overall command help.</param>
|
||||
/// <returns>The text to help understand the argument.</returns>
|
||||
string Help(string argument);
|
||||
}
|
||||
}
|
||||
|
@ -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++)
|
||||
|
Loading…
Reference in New Issue
Block a user