Skip to content

Commit

Permalink
[dnf5] Add argument "-c" - alias to "--config" (dnf4 compatibility)
Browse files Browse the repository at this point in the history
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".
  • Loading branch information
jrohel committed Aug 23, 2024
1 parent b1f839c commit 737001e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 7 additions & 0 deletions dnf5/config/usr/share/dnf5/aliases.d/compatibility.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 0 additions & 3 deletions doc/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 737001e

Please sign in to comment.