Bug 1480474

Summary: there is no correct output displayed by `dnf module <subcommand> --help`
Product: [Fedora] Fedora Reporter: Irina Gulina <igulina>
Component: dnfAssignee: Martin Hatina <mhatina>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: dmach, mhatina, packaging-team-maint, rpm-software-management, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-14 07:28:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1478068    
Attachments:
Description Flags
update help output
none
list help output
none
list help output
none
install help output none

Description Irina Gulina 2017-08-11 08:42:53 UTC
Created attachment 1312022 [details]
update help output

Description of problem:

dnf module [subcommand] --help shows the same output for all subcommands [1] . Compare files in attachment. I expect only relevant to subcommand options to be displayed.

[1] https://copr.fedorainfracloud.org/coprs/mhatina/DNF-Modules/
module list command
module info command
module enable command
module disable command
module install command

install command
module update command
update command

Version-Release number of selected component (if applicable):
latest boltron compose 07-17
dnf-2.6.0-3.git.40.c0f7fc6.module_a7788b02.noarch

How reproducible:
always

Comment 1 Irina Gulina 2017-08-11 08:43:52 UTC
Created attachment 1312023 [details]
list help output

Comment 2 Irina Gulina 2017-08-11 08:45:20 UTC
Created attachment 1312024 [details]
list help output

Comment 3 Irina Gulina 2017-08-11 08:47:09 UTC
Created attachment 1312025 [details]
install help output

Comment 4 Martin Hatina 2017-08-14 07:28:40 UTC
Cannot fix, argument parser of dnf would have to be rewritten and dnf team doesn't see so much pros in rewriting it right now