[MAKE.py] [BUILD.py] some minor

Ordering the entries in mcu and toolchain lists when printing the help
text.
pull/626/head
ohagendorf 2014-10-31 13:59:26 +01:00
parent a634fa24eb
commit 113a81d312
1 changed files with 7 additions and 2 deletions

View File

@ -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,