]> git.saurik.com Git - apt.git/commitdiff
Accept --autoremove as alias for --auto-remove
authorJulian Andres Klode <jak@debian.org>
Fri, 26 Aug 2016 14:14:13 +0000 (16:14 +0200)
committerJulian Andres Klode <jak@debian.org>
Wed, 5 Oct 2016 19:53:38 +0000 (21:53 +0200)
I probably missed that when I did the usability work. But better
late than never.

(cherry picked from commit 75d238ba66576c04f257e9d7c0a6995721f1441d)

apt-private/private-cmndline.cc
doc/apt-get.8.xml

index 82908591651f3b02a11f0978c69201500181b768..83fd38bceec9bc5ac5a33e0c99cf6b1b46551039 100644 (file)
@@ -174,6 +174,7 @@ static bool addArgumentsAPTGet(std::vector<CommandLine::Args> &Args, char const
       addArg('f', "fix-broken", "APT::Get::Fix-Broken", 0);
       addArg(0, "purge", "APT::Get::Purge", 0);
       addArg('V',"verbose-versions","APT::Get::Show-Versions",0);
+      addArg(0, "autoremove", "APT::Get::AutomaticRemove", 0);
       addArg(0, "auto-remove", "APT::Get::AutomaticRemove", 0);
       addArg(0, "reinstall", "APT::Get::ReInstall", 0);
       addArg(0, "solver", "APT::Solver", CommandLine::HasArg);
index 60fa46f976b8be673eb1571d9316ff04c5e24ae2..7810b69c2a459028f0c85fe35a1cafaad8554d68 100644 (file)
      Configuration Item: <literal>APT::Get::Remove</literal>.</para></listitem>
      </varlistentry>
 
-     <varlistentry><term><option>--auto-remove</option></term>
+     <varlistentry><term><option>--auto-remove</option></term><term><option>--autoremove</option></term>
      <listitem><para>If the command is either <literal>install</literal> or <literal>remove</literal>,
      then this option acts like running the <literal>autoremove</literal> command, removing unused
      dependency packages. Configuration Item: <literal>APT::Get::AutomaticRemove</literal>.