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:
25
src/cmdline/SpriteCommands.cpp
Normal file
25
src/cmdline/SpriteCommands.cpp
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user