summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Callaghan <dcallagh@redhat.com>2014-06-11 09:34:57 +1000
committerGerrit Code Review <gerrit@beaker-project.org>2014-06-11 06:31:10 +0000
commit2334a200a145cb80a9c7973d78454b058038030d (patch)
treea8882be15efd78b32d30f23c44a79a05d7af7bec
parentff05e5a18349551ab963182730be120f7c747af5 (diff)
bkr job-list: fix man page options, die if positional args are given
-rw-r--r--Client/src/bkr/client/commands/cmd_job_list.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/Client/src/bkr/client/commands/cmd_job_list.py b/Client/src/bkr/client/commands/cmd_job_list.py
index b608061..abbf9c5 100644
--- a/Client/src/bkr/client/commands/cmd_job_list.py
+++ b/Client/src/bkr/client/commands/cmd_job_list.py
@@ -43,15 +43,15 @@ Options
Limit to jobs which were testing the product identified by <cpeid>.
-.. option:: owner <username>
+.. option:: --owner <username>
Limit to jobs which are owned by the user identified by <username>.
-.. option:: whiteboard <string>
+.. option:: --whiteboard <string>
Limit to jobs whose whiteboard contains <string>
-.. option:: mine
+.. option:: --mine
Presence of --mine is equivalent to including own username in --owner
@@ -214,6 +214,9 @@ class Job_List(BeakerCommand):
and owner is None and mine is None and whiteboard is None:
self.parser.error('Please pass either the completeDays time delta, a tag, product, family, or owner')
+ if args:
+ self.parser.error('This command does not accept any arguments')
+
self.set_hub(**kwargs)
if mine:
self.hub._login()