WallShell
An easy-to-use, highly portable, CLI using C99.
|
Specific help structure. More...
Data Fields | |
const char * | commandName |
Name of the command. | |
const char * | description |
Description of the command. | |
const char ** | required |
Flags/subcommands that are a required when running this command. | |
const int | required_count |
Amount of flags/subcommands in the required part of this structure. More... | |
const char ** | optional |
Flags/subcommands that are optional when running this command. | |
const int | optional_count |
Amount of flags/subcommands in the optional part of this structure. More... | |
Specific help structure.
Makes printing help menu entries consistent across different functions. Not all fields have to be filled in. You can leave fields as NULL to not print them.
This is meant for things like subcommands, flags, etc.
Meant to be used with ws_printSpecificHelp().
optional_count |
Amount of flags/subcommands in the optional
part of this structure.
It's the count, not the indexes.
required_count |
Amount of flags/subcommands in the required
part of this structure.
It's the count, not the indexes.