aboutsummaryrefslogtreecommitdiff
path: root/src/clients/qualudis/man_qualudis.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/qualudis/man_qualudis.cc')
-rw-r--r--src/clients/qualudis/man_qualudis.cc14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/clients/qualudis/man_qualudis.cc b/src/clients/qualudis/man_qualudis.cc
index 01d494777..c43ecf1d2 100644
--- a/src/clients/qualudis/man_qualudis.cc
+++ b/src/clients/qualudis/man_qualudis.cc
@@ -63,8 +63,16 @@ main(int argc, char * argv[])
ManCommandLine cmdline;
cmdline.run(argc, argv, "", "", "");
- paludis::args::generate_man(cout, QualudisCommandLine::get_instance(),
- cmdline.a_html.specified() ? paludis::args::mf_html : paludis::args::mf_man);
+ if (cmdline.a_html.specified())
+ {
+ paludis::args::HtmlWriter hw(cout);
+ paludis::args::generate_doc(hw, QualudisCommandLine::get_instance());
+ }
+ else
+ {
+ paludis::args::ManWriter mw(cout);
+ paludis::args::generate_doc(mw, QualudisCommandLine::get_instance());
+ }
+
return EXIT_SUCCESS;
}
-