aboutsummaryrefslogtreecommitdiff
path: root/src/clients/instruo/man_instruo.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-19 18:53:22 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-19 19:20:24 +0000
commit6509d233883f44495f8601d0cb9d1302aa800c77 (patch)
tree5c34d16bf83b3d7153098962bacdec100b67e5e4 /src/clients/instruo/man_instruo.cc
parentc3422ce17ce50a73427b5457e9ff4998b7fd401d (diff)
downloadpaludis-6509d233883f44495f8601d0cb9d1302aa800c77.tar.gz
paludis-6509d233883f44495f8601d0cb9d1302aa800c77.tar.xz
Use asciidoc for instruo html
Diffstat (limited to 'src/clients/instruo/man_instruo.cc')
-rw-r--r--src/clients/instruo/man_instruo.cc21
1 files changed, 2 insertions, 19 deletions
diff --git a/src/clients/instruo/man_instruo.cc b/src/clients/instruo/man_instruo.cc
index 6903075e6..2216facca 100644
--- a/src/clients/instruo/man_instruo.cc
+++ b/src/clients/instruo/man_instruo.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2006, 2007, 2009 Ciaran McCreesh
+ * Copyright (c) 2006, 2007, 2009, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -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());