From bb826e174279e7c01098fcb0d90b1dd0f304880a Mon Sep 17 00:00:00 2001 From: Jaroslav Rohel Date: Fri, 23 Aug 2024 07:31:01 +0200 Subject: [PATCH] [dnf5] Add argument "-c" - alias to "--config" (dnf4 compatibility) We prefer the "--config" argument, for which we support bash completion. The short version "-c" is added to prevent problems with old scripts using dnf4 that may use "-c". --- dnf5/config/usr/share/dnf5/aliases.d/compatibility.conf | 7 +++++++ doc/changes.rst | 3 --- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dnf5/config/usr/share/dnf5/aliases.d/compatibility.conf b/dnf5/config/usr/share/dnf5/aliases.d/compatibility.conf index cf217d037..d3cd13003 100644 --- a/dnf5/config/usr/share/dnf5/aliases.d/compatibility.conf +++ b/dnf5/config/usr/share/dnf5/aliases.d/compatibility.conf @@ -8,6 +8,13 @@ version = '1.0' type = 'group' header = "Options Compatibility aliases:" +['c'] +type = 'cloned_named_arg' +short_name = 'c' +source = 'config' +group_id = 'options-compatibility-aliases' +complete = false + ['nobest'] type = 'cloned_named_arg' long_name = 'nobest' diff --git a/doc/changes.rst b/doc/changes.rst index 33d3006bd..54ff4e5f9 100644 --- a/doc/changes.rst +++ b/doc/changes.rst @@ -48,9 +48,6 @@ Changes to individual options ``--color`` * Dropped. Now only the ``color`` configuration option is available. -``-c`` - * The short version of the ``--config`` option has been dropped. - .. TODO(jkolarik): Not implemented yet ``-d, --debuglevel`` * Dropped. Now only the ``debuglevel`` configuration option is available.