aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-07-22 10:15:55 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-07-22 10:15:55 +0000
commitc9cd8a6ed689157772d6f8c1530e2711dc515433 (patch)
tree1f32fcbd6eaf4ab3927046d24a2825feb7d67895
parent4655bfeabe63295d440e4b61ed0b41deea0121c3 (diff)
downloadpaludis-c9cd8a6ed689157772d6f8c1530e2711dc515433.tar.gz
paludis-c9cd8a6ed689157772d6f8c1530e2711dc515433.tar.xz
Initial automatic man page generation support. Rather crude.
-rw-r--r--paludis/args/args_TEST.cc21
1 files changed, 18 insertions, 3 deletions
diff --git a/paludis/args/args_TEST.cc b/paludis/args/args_TEST.cc
index d94c7dd..fff46e7 100644
--- a/paludis/args/args_TEST.cc
+++ b/paludis/args/args_TEST.cc
@@ -54,22 +54,37 @@ struct CommandLine : public ArgsHandler
CommandLine();
~CommandLine();
+
+ std::string app_name() const
+ {
+ return "args_TEST";
+ }
+
+ std::string app_synopsis() const
+ {
+ return "tests for args";
+ }
+
+ std::string app_description() const
+ {
+ return "Tests args";
+ }
};
CommandLine::CommandLine() :
- group_one(this, "Group one"),
+ group_one(this, "Group one", "Description of group one"),
arg_foo(&group_one, "foo", 'f', "Enable foo"),
arg_bar(&group_one, "bar", 'b', "Enable bar"),
arg_dummy(&group_one, "dummy", 'd', "Enable something else"),
- group_two(this, "Group two"),
+ group_two(this, "Group two", "Description of group two"),
arg_baz(&group_two, "baz", 'z', "Enable baz"),
arg_other_baz(&arg_baz, "other-baz"),
arg_something(&group_two, "something", 's', "Value of something"),
arg_somenum(&group_two, "num", 'n', "Some number"),
arg_enum(&group_two, "enum", 'e', "One of three", EnumArg::EnumArgOptions("one", "Option one")("two", "option two")("three", "option three"), "two"),
- group_three(this, "Group three"),
+ group_three(this, "Group three", "Description of group three"),
arg_other_enum(&group_three, "something", '\0', "Blah.", EnumArg::EnumArgOptions("a", "A")("b", "B")("c", "C"), "b"),
arg_stringset(&group_three, "stringset", 't', "A StringSet.")
{