aboutsummaryrefslogtreecommitdiff
path: root/src/clients/contrarius/man_contrarius.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/contrarius/man_contrarius.cc')
-rw-r--r--src/clients/contrarius/man_contrarius.cc13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/clients/contrarius/man_contrarius.cc b/src/clients/contrarius/man_contrarius.cc
index d8e16f41e..b93e3d59b 100644
--- a/src/clients/contrarius/man_contrarius.cc
+++ b/src/clients/contrarius/man_contrarius.cc
@@ -64,8 +64,17 @@ 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;
}