nsCOMPtr<nsICategoryManager> catman (do_GetService(NS_CATEGORYMANAGER_CONTRACTID)); NS_ENSURE_TRUE(catman, NS_ERROR_UNEXPECTED);  nsCStringArray handlers; rv = getHandlers(handlers, catman); NS_ENSURE_SUCCESS(rv, rv);  HelpClosure closure (aResult, catman);  handlers.EnumerateForwards(EnumHelp, &closure);
nsCommandLine::GetHelpText(nsACString& aResult){  EnumerateHandlers(EnumRun, &aResult);  return NS_OK;}