From: Julian Andres Klode Date: Tue, 20 Oct 2015 16:16:42 +0000 (+0200) Subject: Allow -i and -u as aliases for installed and upgradable in list X-Git-Tag: 1.1_exp14~1 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/d2c712a1754c987aac9f31486d1085a6d65ea707 Allow -i and -u as aliases for installed and upgradable in list This makes things much easier to use --- 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);