From 113a81d312277944d98dee86409ad501a0421827 Mon Sep 17 00:00:00 2001 From: ohagendorf Date: Fri, 31 Oct 2014 13:59:26 +0100 Subject: [PATCH] [MAKE.py] [BUILD.py] some minor Ordering the entries in mcu and toolchain lists when printing the help text. --- workspace_tools/options.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/workspace_tools/options.py b/workspace_tools/options.py index 8db194c8fe..3e4d2e859c 100644 --- a/workspace_tools/options.py +++ b/workspace_tools/options.py @@ -22,12 +22,17 @@ from workspace_tools.targets import TARGET_NAMES def get_default_options_parser(): parser = OptionParser() + targetnames = TARGET_NAMES + targetnames.sort() + toolchainlist = list(TOOLCHAINS) + toolchainlist.sort() + parser.add_option("-m", "--mcu", - help="build for the given MCU (%s)" % ', '.join(TARGET_NAMES), + help="build for the given MCU (%s)" % ', '.join(targetnames), metavar="MCU") parser.add_option("-t", "--tool", - help="build using the given TOOLCHAIN (%s)" % ', '.join(TOOLCHAINS), + help="build using the given TOOLCHAIN (%s)" % ', '.join(toolchainlist), metavar="TOOLCHAIN") parser.add_option("-c", "--clean", action="store_true", default=False,