summaryrefslogtreecommitdiff
path: root/apt-private/private-cmndline.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2014-01-23 07:52:23 +0100
committerMichael Vogt <mvo@debian.org>2014-01-23 07:57:52 +0100
commit06293aa79b46efdec96910b2f678ce1cbdecc86d (patch)
treee7c15d5ba62d6e4805373cd57613b456ddbec8b7 /apt-private/private-cmndline.cc
parent9e51c0b6a3a1a36336820eda11bcfd5534d9d80c (diff)
Show only the candidate with "apt show"
Display only the candidate version with "apt show pkg" but show a notice that there is more to see.
Diffstat (limited to 'apt-private/private-cmndline.cc')
-rw-r--r--apt-private/private-cmndline.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/apt-private/private-cmndline.cc b/apt-private/private-cmndline.cc
index cbb40d42e..2b6c710d6 100644
--- a/apt-private/private-cmndline.cc
+++ b/apt-private/private-cmndline.cc
@@ -235,6 +235,10 @@ bool addArgumentsAPT(std::vector<CommandLine::Args> &Args, char const * const Cm
// FIXME: find a better term
addArg(0,"dist","APT::Cmd::Dist-Upgrade", CommandLine::Boolean);
}
+ else if (CmdMatches("show"))
+ {
+ addArg('a', "all-versions", "APT::Cache::AllVersions", 0);
+ }
else if (addArgumentsAPTGet(Args, Cmd) || addArgumentsAPTCache(Args, Cmd))
{
// we have no (supported) command-name overlaps so far, so we call