Fix up help message in cireporter.py
Minor fix to the help message to indicate count (it was just a copy paste of Name). Also added an example to the -p argument to show that the openstack domain is needed when specifying a project. Lastly, either capitilize the first work in the help string or don't, but be consistent. More were LC so I made the rest match. Change-Id: I89e88e51459583c2564b033f7f45223eae77f2c1
This commit is contained in:
parent
d3ffeaa8ff
commit
89c077ae49
@ -7,7 +7,6 @@ import calendar
|
|||||||
import datetime
|
import datetime
|
||||||
import json
|
import json
|
||||||
import yaml
|
import yaml
|
||||||
import pdb
|
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
@ -193,7 +192,7 @@ def main():
|
|||||||
parser.add_argument('-c', '--count',
|
parser.add_argument('-c', '--count',
|
||||||
default=10,
|
default=10,
|
||||||
type=int,
|
type=int,
|
||||||
help='unique gerrit name of the reviewer')
|
help='number of records to evaluate')
|
||||||
parser.add_argument('-i', '--input',
|
parser.add_argument('-i', '--input',
|
||||||
default=None,
|
default=None,
|
||||||
help='yaml file containing list of names to search on'
|
help='yaml file containing list of names to search on'
|
||||||
@ -201,13 +200,14 @@ def main():
|
|||||||
' (overwrites -p and -n)')
|
' (overwrites -p and -n)')
|
||||||
parser.add_argument('-o', '--output',
|
parser.add_argument('-o', '--output',
|
||||||
default=None,
|
default=None,
|
||||||
help='Write the output to a file. Defaults to stdout.')
|
help='write the output to a file. Defaults to stdout.')
|
||||||
parser.add_argument('-j', '--json',
|
parser.add_argument('-j', '--json',
|
||||||
default=False,
|
default=False,
|
||||||
action="store_true",
|
action="store_true",
|
||||||
help=("Generate report output in json format."))
|
help=("generate report output in json format."))
|
||||||
parser.add_argument('-p', '--project',
|
parser.add_argument('-p', '--project',
|
||||||
help='only list hits for a specific project')
|
help='only list hits for a specific project '
|
||||||
|
'(ie: openstack/cinder)')
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
names = {args.project: [args.name]}
|
names = {args.project: [args.name]}
|
||||||
|
Loading…
Reference in New Issue
Block a user