diff options
author | Julian Andres Klode <jak@debian.org> | 2015-10-20 18:16:42 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2015-10-20 18:16:42 +0200 |
commit | d2c712a1754c987aac9f31486d1085a6d65ea707 (patch) | |
tree | 8c17e7178d39829da1543641d0384b14f2e69184 /apt-private/private-cmndline.cc | |
parent | e7cab38ea9e4bf9df63c225ce7fc4f43b8109569 (diff) |
Allow -i and -u as aliases for installed and upgradable in list
This makes things much easier to use
Diffstat (limited to 'apt-private/private-cmndline.cc')
-rw-r--r-- | apt-private/private-cmndline.cc | 4 |
1 files 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<CommandLine::Args> &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); |