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.cc19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/clients/cave/man_cave.cc b/src/clients/cave/man_cave.cc
index 3f81b0b97..586d9fcf3 100644
--- a/src/clients/cave/man_cave.cc
+++ b/src/clients/cave/man_cave.cc
@@ -36,17 +36,6 @@ namespace
struct ManCommandLine :
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)
- {
- }
-
virtual std::string app_name() const
{
return "";
@@ -70,13 +59,7 @@ main(int argc, char * argv[])
ManCommandLine cmdline;
cmdline.run(argc, argv, "", "", "");
- std::shared_ptr<paludis::args::DocWriter> w;
- 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
- throw paludis::args::DoHelp("No format specified");
+ auto w(std::make_shared<paludis::args::AsciidocWriter>(cout));
if (cmdline.begin_parameters() == cmdline.end_parameters())
{