From d2c712a1754c987aac9f31486d1085a6d65ea707 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Tue, 20 Oct 2015 18:16:42 +0200 Subject: Allow -i and -u as aliases for installed and upgradable in list This makes things much easier to use --- apt-private/private-cmndline.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apt-private/private-cmndline.cc b/apt-private/private-cmndline.cc index 1072b9a78..7190fe50b 100644 --- a/apt-private/private-cmndline.cc +++ b/apt-private/private-cmndline.cc @@ -248,9 +248,9 @@ static bool addArgumentsAPT(std::vector &Args, char const * c { if (CmdMatches("list")) { - addArg(0,"installed","APT::Cmd::Installed",0); + addArg('i',"installed","APT::Cmd::Installed",0); addArg(0,"upgradeable","APT::Cmd::Upgradable",0); - addArg(0,"upgradable","APT::Cmd::Upgradable",0); + addArg('u',"upgradable","APT::Cmd::Upgradable",0); addArg(0,"manual-installed","APT::Cmd::Manual-Installed",0); addArg('v', "verbose", "APT::Cmd::List-Include-Summary", 0); addArg('a', "all-versions", "APT::Cmd::All-Versions", 0); -- cgit v1.2.3