I noticed while reading through nsCommandLine.cpp that the static function EnumHelp is unused. It seems to me that it should be used from nsCommandLine::GetHelpText, but it is not. Instead, that function calls EnumRun. That seems pretty wrong to me.
Yeah, this really seems to be broken. When I run "firefox -help" I see exceptions from nsBrowserContentHandler.js about not being able to open a new window.
Comment on attachment 189928 [details] [diff] [review] Use EnumHelp, rev. 1 a=shaver
Fixed on trunk for 1.8b4