Bug 1324093

Summary: dnf should print help for any plugins and tell users that --help-cmd exists
Product: [Fedora] Fedora Reporter: jibecfed <jean-baptiste>
Component: dnf-plugins-coreAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: jmracek, jsilhan, mluscon, packaging-team-maint, pnemade, RadekHolyPublic, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-11 11:40:30 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:

Description jibecfed 2016-04-05 13:52:51 UTC
Description of problem:
when testing F24 Alpha for translations, we noticed dnf-plugins core and extra where almost not translated in french.

to have the context of strings to translate, we need at least to access help content

but for plugins, it's not easy to understand how to print help because plugins don't have a consistent behavior

typing "dnf" would result in printing help
  => but it doesn't tell we can type "dnf PLUGIN --help-cmd" to get more information

typing "dnf builddep" would show help, same as "dnf builddep --help-cmd"
 => perfect

typing "dnf copr" would show a help message not consistent with builddep and "dnf copr --help-cmd" would show the same and failed
 => almost perfect

typing "dnf repoquery" would directly output some result while "dnf repoquery --help-cmd" would pring a full help
 => imho, it's ok, but not consistent with dnf behavior

typing "dnf playground" would directly show some help while "dnf playground --help-cmd" would fail : "Erreur : Unknown subcommand --help-cmd."
 => imho, it's not ok and not consistent with dnf behavior

Version-Release number of selected component (if applicable):
dnf 1.1.7-2

How reproducible:
always on F23 & F24

Steps to Reproduce:
1. type dnf PLUGIN
2. type dnf PLUGIN --help-cmd
3.

Actual results:
often different

Expected results:
should at least print help when passing --help-cmd

Additional info:
I targeted F24 as we are in F24 development cycle

Comment 1 Jaroslav Mracek 2016-04-11 11:40:30 UTC

*** This bug has been marked as a duplicate of bug 1158548 ***

Comment 2 jibecfed 2016-04-12 06:10:17 UTC
well, the bug number was so different, I thought of a mistake, but no, this bug is really pending for 18 months ;)