diff options
author | Julian Andres Klode <jak@debian.org> | 2016-08-26 16:14:13 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2016-10-05 21:53:38 +0200 |
commit | f19cbb5bfae6327f64226d02476452561fd9cb4f (patch) | |
tree | 6f1d390aa05b4d68f12ea1c77713d3632d4f09f5 | |
parent | a62eebe5dea48a0274b118a1ea339bc0d1528625 (diff) |
Accept --autoremove as alias for --auto-remove
I probably missed that when I did the usability work. But better
late than never.
(cherry picked from commit 75d238ba66576c04f257e9d7c0a6995721f1441d)
-rw-r--r-- | apt-private/private-cmndline.cc | 1 | ||||
-rw-r--r-- | doc/apt-get.8.xml | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/apt-private/private-cmndline.cc b/apt-private/private-cmndline.cc index 829085916..83fd38bce 100644 --- a/apt-private/private-cmndline.cc +++ b/apt-private/private-cmndline.cc @@ -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); diff --git a/doc/apt-get.8.xml b/doc/apt-get.8.xml index 60fa46f97..7810b69c2 100644 --- a/doc/apt-get.8.xml +++ b/doc/apt-get.8.xml @@ -523,7 +523,7 @@ 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>. |