aboutsummaryrefslogtreecommitdiff
path: root/src/clients
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-11-24 14:13:58 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-11-24 14:13:58 +0000
commitf82eb6d18d47389660e8d5da9eb8d1a1bbd7503c (patch)
tree75dcf1cf4340c59a59545a733fbbf290f8708d6c /src/clients
parentdf502f2988a1810dd1bf770bc07fc46cae037306 (diff)
downloadpaludis-f82eb6d18d47389660e8d5da9eb8d1a1bbd7503c.tar.gz
paludis-f82eb6d18d47389660e8d5da9eb8d1a1bbd7503c.tar.xz
Add mkt_author. Add paludis, inquisitio --show-authors.
Diffstat (limited to 'src/clients')
-rw-r--r--src/clients/inquisitio/command_line.cc1
-rw-r--r--src/clients/inquisitio/command_line.hh1
-rw-r--r--src/clients/inquisitio/query_task.cc6
-rw-r--r--src/clients/inquisitio/query_task.hh1
-rw-r--r--src/clients/paludis/command_line.cc1
-rw-r--r--src/clients/paludis/command_line.hh3
-rw-r--r--src/clients/paludis/query.cc5
7 files changed, 18 insertions, 0 deletions
diff --git a/src/clients/inquisitio/command_line.cc b/src/clients/inquisitio/command_line.cc
index 268d80a15..ce260bd6d 100644
--- a/src/clients/inquisitio/command_line.cc
+++ b/src/clients/inquisitio/command_line.cc
@@ -79,6 +79,7 @@ CommandLine::CommandLine() :
a_compact(&output_args, "compact", '\0', "Display output using one line per entry", true),
a_show_dependencies(&output_args, "show-dependencies", 'D', "Show dependencies", true),
+ a_show_authors(&output_args, "show-authors", 'A', "Show author information", true),
a_show_metadata(&output_args, "show-metadata", 'M', "Show raw metadata", true),
deprecated_args(this, "Deprecated options", "Deprecated options."),
diff --git a/src/clients/inquisitio/command_line.hh b/src/clients/inquisitio/command_line.hh
index a1eddcd81..657c298d5 100644
--- a/src/clients/inquisitio/command_line.hh
+++ b/src/clients/inquisitio/command_line.hh
@@ -98,6 +98,7 @@ class CommandLine :
paludis::args::ArgsGroup output_args;
paludis::args::SwitchArg a_compact;
paludis::args::SwitchArg a_show_dependencies;
+ paludis::args::SwitchArg a_show_authors;
paludis::args::SwitchArg a_show_metadata;
///\}
diff --git a/src/clients/inquisitio/query_task.cc b/src/clients/inquisitio/query_task.cc
index 52acf9472..dcb349eac 100644
--- a/src/clients/inquisitio/query_task.cc
+++ b/src/clients/inquisitio/query_task.cc
@@ -46,3 +46,9 @@ InquisitioQueryTask::want_compact() const
return CommandLine::get_instance()->a_compact.specified();
}
+bool
+InquisitioQueryTask::want_authors() const
+{
+ return CommandLine::get_instance()->a_show_authors.specified();
+}
+
diff --git a/src/clients/inquisitio/query_task.hh b/src/clients/inquisitio/query_task.hh
index b335ec982..e72568e4e 100644
--- a/src/clients/inquisitio/query_task.hh
+++ b/src/clients/inquisitio/query_task.hh
@@ -33,6 +33,7 @@ namespace inquisitio
virtual bool want_compact() const;
virtual bool want_deps() const;
virtual bool want_raw() const;
+ virtual bool want_authors() const;
};
}
diff --git a/src/clients/paludis/command_line.cc b/src/clients/paludis/command_line.cc
index 56a55715e..a5f98fb8b 100644
--- a/src/clients/paludis/command_line.cc
+++ b/src/clients/paludis/command_line.cc
@@ -85,6 +85,7 @@ CommandLine::CommandLine() :
query_args(this, "Query options",
"Options which are relevant for --query."),
a_show_deps(&query_args, "show-deps", 'D', "Show dependencies", true),
+ a_show_authors(&query_args, "show-authors", 'A', "Show author information", true),
a_show_metadata(&query_args, "show-metadata", 'M', "Show raw metadata", true),
install_args(this, "Install, Uninstall options",
diff --git a/src/clients/paludis/command_line.hh b/src/clients/paludis/command_line.hh
index 89487aa73..2c482be82 100644
--- a/src/clients/paludis/command_line.hh
+++ b/src/clients/paludis/command_line.hh
@@ -186,6 +186,9 @@ class CommandLine :
/// --show-deps
paludis::args::SwitchArg a_show_deps;
+ /// --show-authors
+ paludis::args::SwitchArg a_show_authors;
+
/// --show-metadata
paludis::args::SwitchArg a_show_metadata;
diff --git a/src/clients/paludis/query.cc b/src/clients/paludis/query.cc
index 5f59b7d9c..980a48de4 100644
--- a/src/clients/paludis/query.cc
+++ b/src/clients/paludis/query.cc
@@ -58,6 +58,11 @@ namespace
return CommandLine::get_instance()->a_show_metadata.specified();
}
+ bool want_authors() const
+ {
+ return CommandLine::get_instance()->a_show_authors.specified();
+ }
+
bool want_compact() const
{
return CommandLine::get_instance()->a_compact.specified();