Bug 1782822 - dnf config-manager prints nothing and exits with 0
Summary: dnf config-manager prints nothing and exits with 0
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: dnf
Version: 8.2
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: 8.0
Assignee: nsella
QA Contact: Luca Berton
Depends On:
TreeView+ depends on / blocked
Reported: 2019-12-12 12:35 UTC by Daniel Mach
Modified: 2020-07-01 13:30 UTC (History)
4 users (show)

Fixed In Version: dnf-plugins-core-4.0.15-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:
Type: Bug
Target Upstream Version:

Attachments (Terms of Use)

Description Daniel Mach 2019-12-12 12:35:52 UTC
dnf config-manager prints nothing and exits with 0.
YUM3 used to perform the --dump action in this case.
We have decided not to bring the previous behavior back in bug#1706384.

Expected behavior / Acceptance criteria:
$ dnf config-manager
error is printed (user is suggested to specify an option) and dnf exits with non-zero code (probably 2)

It might be doable by grouping the action options (--save, ---add-repo, -dump, --dump-variables) and changing the option parser that it would require specifying one of them.

Note You need to log in before you can comment on or make changes to this bug.