Bug 1328050 - Incorrect option --repo instead of --repoid in manual
Summary: Incorrect option --repo instead of --repoid in manual
Keywords:
Status: CLOSED DUPLICATE of bug 1260986
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-plugins-core
Version: 23
Hardware: All
OS: All
unspecified
medium
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-18 10:11 UTC by Mike Goodwin
Modified: 2016-04-18 11:37 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-18 11:37:02 UTC
Type: Bug


Attachments (Terms of Use)

Description Mike Goodwin 2016-04-18 10:11:02 UTC
Description of problem:

Man page has incorrect information for option --repoid listed as --repo 

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


How reproducible:

`man dnf.plugin.repoquery` 

Steps to Reproduce:
1.
2.
3.

Actual results:

See above

Expected results:

Man page should list correct option as to not confuse the user

Additional info:

Created pull request here: 

https://github.com/rpm-software-management/dnf-plugins-core/pull/158/files

Also added a line break after the first synopsis line since having two mutually exclusive commands on the same line create ambiguity (white-space change)

Comment 1 Mike Goodwin 2016-04-18 10:50:29 UTC
More info copied from github PR comment https://github.com/rpm-software-management/dnf-plugins-core/pull/158#issuecomment-211323999:



As I investigate this further it's not simply a mis-documented switch, something else is awry:

https://github.com/xenithorb/dnf-plugins-core/blob/master/plugins/repoquery.py#L88-92

Here we see:

    parser.add_argument('--repo', metavar='REPO', action='append',
                        help=_('show only results from this REPO'))
    # make --repoid hidden compatibility alias for --repo
    parser.add_argument('--repoid', dest='repo', action='append',
                        help=argparse.SUPPRESS)

Of course the reason I'm here at all is simply because --repo does not work, the parent DNF command complains about it being bad format for --repofrompath, which is when --repoid works as intended.

Example:

 #> dnf repoquery --repo fedora-nvidia 
usage: dnf [--allowerasing] [-b] [-C] [-c [config file]] [-d [debug level]]
           [--debugsolver] [--showduplicates] [-e ERRORLEVEL]
           [--rpmverbosity [debug level name]] [-q] [-v] [-y] [--assumeno]
           [--version] [--installroot [path]] [--enablerepo [repo]]
           [--disablerepo [repo]] [-x [package]] [--disableexcludes [repo]]
           [--repofrompath [repo,path]] [--noplugins] [--nogpgcheck]
           [--disableplugin [plugin]] [--color COLOR]
           [--releasever RELEASEVER] [--setopt SETOPTS] [--refresh] [-4] [-6]
           [--downloadonly] [-h]
Command line error: argument --repofrompath: bad format: fedora-nvidia

Further sleuthing shows this commit: d1089a7

by @MichaelMraka which is basically the reverse of what I'm trying to accomplish. Perhaps "--repo" is no longer warranted due to the incompatibility with dnf proper, and we can just revert Michael's commit?

I would not merge my PR at this point

Comment 2 Mike Goodwin 2016-04-18 10:55:43 UTC
This bug also needs to be filed against component: 

python3-dnf-plugins-core-0.1.20-1.fc23.noarch

but I don't see that in the component list, can someone assist?

Comment 3 Honza Silhan 2016-04-18 11:37:02 UTC

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


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