From 4afb07258fad5f9026ad25f579a871093a312ac5 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Fri, 27 Sep 2019 12:09:22 +0200 Subject: Parse 'show' arguments for the 'info' alias as well We recently made info an alias for show, but we did not change the command-line parser to work around it. LP: #1843812 --- apt-private/private-cmndline.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apt-private') diff --git a/apt-private/private-cmndline.cc b/apt-private/private-cmndline.cc index 5944e530d..a78cbaf1a 100644 --- a/apt-private/private-cmndline.cc +++ b/apt-private/private-cmndline.cc @@ -59,7 +59,7 @@ static bool addArgumentsAPTCache(std::vector &Args, char cons addArg('n', "names-only", "APT::Cache::NamesOnly", 0); addArg('f', "full", "APT::Cache::ShowFull", 0); } - else if (CmdMatches("show")) + else if (CmdMatches("show") | CmdMatches("info")) { addArg('a', "all-versions", "APT::Cache::AllVersions", 0); } @@ -344,7 +344,7 @@ static bool addArgumentsAPT(std::vector &Args, char const * c addArg('v', "verbose", "APT::Cmd::List-Include-Summary", 0); addArg('a', "all-versions", "APT::Cmd::All-Versions", 0); } - else if (CmdMatches("show")) + else if (CmdMatches("show") || CmdMatches("info")) { addArg('a', "all-versions", "APT::Cache::AllVersions", 0); } -- cgit v1.2.3