From 0a88c32502322afbfd404905fb8297f9e3019ecf Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Wed, 21 Mar 2018 17:36:50 +0000 Subject: [PATCH] commands/list: Display plugins in alphabetical order --- wa/commands/list.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wa/commands/list.py b/wa/commands/list.py index fd4f4301..1b5637fe 100644 --- a/wa/commands/list.py +++ b/wa/commands/list.py @@ -29,9 +29,9 @@ class ListCommand(Command): kinds = get_kinds() self.parser.add_argument('kind', metavar='KIND', help=('Specify the kind of plugin to list. Must be ' - 'one of: {}'.format(', '.join(kinds))), - choices=kinds) - self.parser.add_argument('-n', '--name', + 'one of: {}'.format(', '.join(sorted(kinds)))), + choices=sorted(kinds)) + self.parser.add_argument('-n', '--name', help='Filter results by the name specified') self.parser.add_argument('-o', '--packaged-only', action='store_true', help=''' @@ -39,7 +39,7 @@ class ListCommand(Command): not list plugins installed locally or from other packages. ''') - self.parser.add_argument('-p', '--platform', + self.parser.add_argument('-p', '--platform', help=''' Only list results that are supported by the specified platform.