@@ -130,7 +130,7 @@ usage: pwclient projects [-h]
.SH OPTIONS 'pwclient check-get'
-usage: pwclient check-get [-f FORMAT] PATCH_ID
+usage: pwclient check-get [--help] [-h] [-p PROJECT] [-f FORMAT] PATCH_ID [PATCH_ID ...]
.TP
\fBPATCH_ID\fR
@@ -112,12 +112,9 @@ installed locales.
projects_parser.set_defaults(subcmd='projects')
check_get_parser = subparsers.add_parser(
- 'check-get', add_help=False,
+ 'check-get', parents=[hash_parser], conflict_handler='resolve',
help="get checks for a patch"
)
- check_get_parser.add_argument(
- 'patch_id', metavar='PATCH_ID', action='store', type=int,
- help="patch ID")
check_get_parser.add_argument(
'-f', '--format', metavar='FORMAT',
help=("print output in the given format. You can use tags matching "
@@ -212,9 +212,9 @@ def main(argv=sys.argv[1:]):
commit=args.commit_ref)
elif action == 'check_get':
- patch_id = args.patch_id
format_str = args.format
- checks.action_get(rpc, patch_id, format_str)
+ for patch_id in patch_ids:
+ checks.action_get(rpc, patch_id, format_str)
elif action == 'check_list':
checks.action_list(rpc)
check-get doesn't support specifying the project and doesn't support more than one patch ID like other commands which take patch ID as an argument. Align check-get with other commands like view and get. Cc: Olof Johansson <olof@lixom.net> Signed-off-by: Rob Herring <robh@kernel.org> --- man/pwclient.1 | 2 +- pwclient/parser.py | 5 +---- pwclient/shell.py | 4 ++-- 3 files changed, 4 insertions(+), 7 deletions(-)