aboutsummaryrefslogtreecommitdiff
path: root/src/clients/appareo/man_appareo.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-19 18:50:57 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-19 19:20:23 +0000
commitc3422ce17ce50a73427b5457e9ff4998b7fd401d (patch)
treecc45338efff3b42300526f56487f38fde24ee0c1 /src/clients/appareo/man_appareo.cc
parentbaa832efda41087bab4f0723cded67baeaddb3b8 (diff)
downloadpaludis-c3422ce17ce50a73427b5457e9ff4998b7fd401d.tar.gz
paludis-c3422ce17ce50a73427b5457e9ff4998b7fd401d.tar.xz
Use asciidoc for appareo html
Diffstat (limited to 'src/clients/appareo/man_appareo.cc')
-rw-r--r--src/clients/appareo/man_appareo.cc19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/clients/appareo/man_appareo.cc b/src/clients/appareo/man_appareo.cc
index 702a70a1b..036157082 100644
--- a/src/clients/appareo/man_appareo.cc
+++ b/src/clients/appareo/man_appareo.cc
@@ -32,17 +32,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 "";
@@ -66,13 +55,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));
paludis::args::generate_doc(*w, CommandLine::get_instance());