aboutsummaryrefslogtreecommitdiff
path: root/src/clients/paludis/man_paludis.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/paludis/man_paludis.cc')
-rw-r--r--src/clients/paludis/man_paludis.cc16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/clients/paludis/man_paludis.cc b/src/clients/paludis/man_paludis.cc
index 2bc3b97f0..3501bb019 100644
--- a/src/clients/paludis/man_paludis.cc
+++ b/src/clients/paludis/man_paludis.cc
@@ -63,10 +63,16 @@ main(int argc, char * argv[])
ManCommandLine cmdline;
cmdline.run(argc, argv, "", "", "");
- paludis::args::generate_man(cout, CommandLine::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, CommandLine::get_instance());
+ }
+ else
+ {
+ paludis::args::ManWriter mw(cout);
+ paludis::args::generate_doc(mw, CommandLine::get_instance());
+ }
+
return EXIT_SUCCESS;
}
-
-
-