1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 12:03:07 +01:00

new-argparse: implement most of the root commands, fix issues

This commit is contained in:
IntelOrca
2016-01-10 19:41:09 +00:00
parent 9d98147b75
commit 3f0073f29c
16 changed files with 406 additions and 168 deletions

View File

@@ -0,0 +1,25 @@
#include "CommandLine.hpp"
static const char * _mode;
static const CommandLineOptionDefinition SpriteOptions[]
{
{ CMDLINE_TYPE_STRING, &_mode, 'm', "mode", "the type of sprite conversion <default|simple|dithering>" },
OptionTableEnd
};
static exitcode_t Handle(CommandLineArgEnumerator *argEnumerator);
const CommandLineCommand CommandLine::SpriteCommands[]
{
// Main commands
DefineCommand("details", "<spritefile> [idx]", SpriteOptions, Handle),
DefineCommand("export", "<spritefile> <idx> <output>", SpriteOptions, Handle),
DefineCommand("build", "<spritefile> <resourcedir> [silent]", SpriteOptions, Handle),
CommandTableEnd
};
static exitcode_t Handle(CommandLineArgEnumerator *argEnumerator)
{
return EXITCODE_OK;
}