added one time use path for script use.
This commit is contained in:
parent
c8ec1b01b1
commit
8de9d86370
@ -2,6 +2,7 @@
|
|||||||
using RecrownedAthenaeum.Tools.TextureAtlasTools;
|
using RecrownedAthenaeum.Tools.TextureAtlasTools;
|
||||||
using System;
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
namespace RecrownedAthenaeum.Tools
|
namespace RecrownedAthenaeum.Tools
|
||||||
{
|
{
|
||||||
@ -10,7 +11,6 @@ namespace RecrownedAthenaeum.Tools
|
|||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
CommandEngine ce = new CommandEngine();
|
CommandEngine ce = new CommandEngine();
|
||||||
|
|
||||||
ConsoleUtilities.WriteWrappedLine("Recrowned Athenaeum Console Tools version " + Assembly.GetExecutingAssembly().GetName().Version.ToString());
|
ConsoleUtilities.WriteWrappedLine("Recrowned Athenaeum Console Tools version " + Assembly.GetExecutingAssembly().GetName().Version.ToString());
|
||||||
ConsoleUtilities.WriteWrappedLine("Type \"help\" for help.");
|
ConsoleUtilities.WriteWrappedLine("Type \"help\" for help.");
|
||||||
|
|
||||||
@ -18,7 +18,17 @@ namespace RecrownedAthenaeum.Tools
|
|||||||
ce.commands.Add(new TexturePackerCommand());
|
ce.commands.Add(new TexturePackerCommand());
|
||||||
ce.commands.Add(new StopCommand(ce));
|
ce.commands.Add(new StopCommand(ce));
|
||||||
ce.commands.Add(new TestCommand());
|
ce.commands.Add(new TestCommand());
|
||||||
|
|
||||||
|
if (args != null)
|
||||||
|
{
|
||||||
|
ConsoleUtilities.WriteWrappedLine("Executing as one time use.");
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
for (int i = 0; i < args.Length; i++) sb.Append(args[i] + ' ');
|
||||||
|
ce.Process(sb.ToString().Trim());
|
||||||
|
} else
|
||||||
|
{
|
||||||
ce.Run();
|
ce.Run();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user