}
static int
-help_command(int argc, char *argv[]);
+do_help_command(int argc, char *argv[]);
-const Command help = {
+const Command help_command = {
"help",
help_synopsis,
help_usage,
- help_command
+ do_help_command
};
static const Command * commands[] = {
- &dump,
- &help,
+ &diff_command,
+ &dump_command,
+ &trace_command,
+ &help_command
};
static void
static int
-help_command(int argc, char *argv[])
+do_help_command(int argc, char *argv[])
{
const Command *command;
int i;
}
if (strcmp(arg, "--help") == 0) {
- return help_command(0, NULL);
+ return do_help_command(0, NULL);
} else {
std::cerr << "Error: unknown option " << arg << "\n";
usage();