"\n"
"Snort has several options to get more help:\n"
"\n"
-"-? list command line options\n"
+"-? list command line options (same as --help)\n"
"--help this overview of help\n"
"--help-commands [<module prefix>] output matching commands\n"
"--help-config [<module prefix>] output matching config options\n"
"--list-buffers output available inspection buffers\n"
"--list-builtin [<module prefix>] output matching builtin rules\n"
"--list-gids [<module prefix>] output matching generators\n"
-"--list-modules list all known modules\n"
+"--list-modules [<module type>] list all known modules\n"
"--list-plugins list all known modules\n"
-"--markup output help in asciidoc compatible format\n"
+"--show-plugins list module and plugin versions\n"
"\n"
"--help* and --list* options preempt other processing so should be last on the\n"
"command line since any following options are ignored. To ensure options like\n"
while ( p->name )
{
- if ( p->help && (!n || !strncasecmp(p->name, pfx, n)) )
+ const char* name = p->name;
+ while ( *name == '-' )
+ name++;
+
+ if ( p->help && (!n || !strncasecmp(name, pfx, n)) )
{
cout << Markup::item();
cout << Markup::emphasis_on();
static const Parameter s_params[] =
{
- { "-?", Parameter::PT_IMPLIED, nullptr, nullptr,
- "list command line options (same as --help)" },
+ { "-?", Parameter::PT_STRING, "(optional)", nullptr,
+ "<option prefix> output matching command line option quick help (same as --help-options)" },
{ "-A", Parameter::PT_STRING, nullptr, nullptr,
"<mode> set alert mode: none, cmg, or alert_*" },
"enable Inline-Test Mode Operation" },
{ "--help", Parameter::PT_IMPLIED, nullptr, nullptr,
- "list command line options (same as -?)" },
-
- { "--help!", Parameter::PT_IMPLIED, nullptr, nullptr,
- "overview of help" },
+ "list command line options" },
{ "--help-commands", Parameter::PT_STRING, "(optional)", nullptr,
"[<module prefix>] output matching commands" },
"list all available plugins with brief help" },
{ "--help-options", Parameter::PT_STRING, "(optional)", nullptr,
- "<option prefix> output matching command line option quick help" },
+ "<option prefix> output matching command line option quick help (same as -?)" },
{ "--help-signals", Parameter::PT_IMPLIED, nullptr, nullptr,
"dump available control signals" },