aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-05-04 19:56:32 +0000
committerAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-05-04 19:56:32 +0000
commit62ca07c8be79011d6eb1640571b1d8cc71908922 (patch)
tree75dedeb65d1a0cffb55c13db72dd9f017504f730 /src
parentf5bccc9dfde8834c50329afc022821bee45106e2 (diff)
downloadpaludis-62ca07c8be79011d6eb1640571b1d8cc71908922.tar.gz
paludis-62ca07c8be79011d6eb1640571b1d8cc71908922.tar.xz
Man/html writing is now abstract.
Diffstat (limited to 'src')
-rw-r--r--src/clients/adjutrix/man_adjutrix.cc15
-rw-r--r--src/clients/contrarius/man_contrarius.cc13
-rw-r--r--src/clients/inquisitio/man_inquisitio.cc14
-rw-r--r--src/clients/paludis/man_paludis.cc16
-rw-r--r--src/clients/qualudis/man_qualudis.cc14
5 files changed, 55 insertions, 17 deletions
diff --git a/src/clients/adjutrix/man_adjutrix.cc b/src/clients/adjutrix/man_adjutrix.cc
index 7fcd24499..3501bb019 100644
--- a/src/clients/adjutrix/man_adjutrix.cc
+++ b/src/clients/adjutrix/man_adjutrix.cc
@@ -63,9 +63,16 @@ 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;
}
-
-
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;
}
diff --git a/src/clients/inquisitio/man_inquisitio.cc b/src/clients/inquisitio/man_inquisitio.cc
index 377366afe..3501bb019 100644
--- a/src/clients/inquisitio/man_inquisitio.cc
+++ b/src/clients/inquisitio/man_inquisitio.cc
@@ -63,8 +63,16 @@ 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;
}
-
diff --git a/src/clients/paludis/man_paludis.cc b/src/clients/paludis/man_paludis.cc
index 2bc3b97f0..3501bb019 100644
--- a/src/clients/paludis/man_paludis.cc
+++ b/src/clients/paludis/man_paludis.cc
@@ -63,10 +63,16 @@ 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;
}
-
-
-
diff --git a/src/clients/qualudis/man_qualudis.cc b/src/clients/qualudis/man_qualudis.cc
index 01d494777..c43ecf1d2 100644
--- a/src/clients/qualudis/man_qualudis.cc
+++ b/src/clients/qualudis/man_qualudis.cc
@@ -63,8 +63,16 @@ main(int argc, char * argv[])
ManCommandLine cmdline;
cmdline.run(argc, argv, "", "", "");
- paludis::args::generate_man(cout, QualudisCommandLine::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, QualudisCommandLine::get_instance());
+ }
+ else
+ {
+ paludis::args::ManWriter mw(cout);
+ paludis::args::generate_doc(mw, QualudisCommandLine::get_instance());
+ }
+
return EXIT_SUCCESS;
}
-