Tools: ardupilotwaf: sort boards in help text

This commit is contained in:
Peter Barker 2019-03-14 19:39:44 +11:00 committed by Peter Barker
parent 935840ebb0
commit 1a81da4a26

View File

@ -298,7 +298,7 @@ Please use a replacement build as follows:
boards = _board_classes.keys()
if not ctx.env.BOARD in boards:
ctx.fatal("Invalid board '%s': choices are %s" % (ctx.env.BOARD, ', '.join(boards)))
ctx.fatal("Invalid board '%s': choices are %s" % (ctx.env.BOARD, ', '.join(sorted(boards, key=str.lower))))
_board = _board_classes[ctx.env.BOARD]()
return _board