aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/man_cave.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/cave/man_cave.cc')
-rw-r--r--src/clients/cave/man_cave.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/clients/cave/man_cave.cc b/src/clients/cave/man_cave.cc
index a7a43d5..db2106d 100644
--- a/src/clients/cave/man_cave.cc
+++ b/src/clients/cave/man_cave.cc
@@ -36,10 +36,12 @@ namespace
paludis::args::ArgsHandler
{
paludis::args::ArgsGroup group;
+ paludis::args::SwitchArg a_asciidoc;
paludis::args::SwitchArg a_html;
ManCommandLine() :
group(main_options_section(), "", ""),
+ a_asciidoc(&group, "asciidoc", '\0', "", false),
a_html(&group, "html", '\0', "", false)
{
}
@@ -68,7 +70,9 @@ main(int argc, char * argv[])
cmdline.run(argc, argv, "", "", "");
std::shared_ptr<paludis::args::DocWriter> w;
- if (cmdline.a_html.specified())
+ if (cmdline.a_asciidoc.specified())
+ w = std::make_shared<paludis::args::AsciidocWriter>(cout);
+ else if (cmdline.a_html.specified())
w = std::make_shared<paludis::args::HtmlWriter>(cout);
else
w = std::make_shared<paludis::args::ManWriter>(cout);