Bug 1107788

Summary: man bkr job-list shows command-line options owner, whiteboard, mine instead of correct --owner, --whiteboard, --mine
Product: [Community] Beaker Reporter: Martin Frodl <mfrodl>
Component: command lineAssignee: Dan Callaghan <dcallagh>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.16CC: aigao, asaha, dcallagh, rmancy, xma
Target Milestone: 0.17.1   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-18 08:17:36 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 Martin Frodl 2014-06-10 15:31:33 UTC
Description of problem:

--owner, --whiteboard and --mine are a couple of command-line options that bkr job-list can be run with. The corresponding man page shows them without leading hyphens, though:

$ man bkr job-list

       owner <username>
              Limit to jobs which are owned by the user identified by

       whiteboard <string>
              Limit to jobs whose whiteboard contains <string>

       mine   Presence of --mine is equivalent to including own username
              in --owner

All the other options are correctly documented with the leading hyphens. In the case of their ommission the desired option is not recognized:

$ bkr job-list --mine
[prints my jobs only]
$ bkr job-list mine
[prints a zillion jobs I have totally nothing to do with]

The respective man page should be modified accordingly.

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

Comment 2 Dan Callaghan 2014-06-10 23:36:40 UTC
The command should also error out when given positional args, to catch usage errors like that.

On Gerrit: http://gerrit.beaker-project.org/3136

Comment 5 Dan Callaghan 2014-07-18 08:17:36 UTC
Beaker 0.17.1 has been released.