mirror of https://github.com/ARMmbed/mbed-os.git
Added ability to list ides
parent
f142939937
commit
111a65b53d
|
@ -68,6 +68,14 @@ ERROR_MESSAGE_NOT_EXPORT_LIBS = """
|
|||
To export this project please <a href='http://mbed.org/compiler/?import=http://mbed.org/users/mbed_official/code/mbed-export/k&mode=lib' target='_blank'>import the export version of the mbed library</a>.
|
||||
"""
|
||||
|
||||
def mcu_ide_list():
|
||||
"""Shows list of exportable ides
|
||||
|
||||
"""
|
||||
supported_ides = sorted(EXPORTERS.keys())
|
||||
return "\n".join(supported_ides)
|
||||
|
||||
|
||||
def mcu_ide_matrix(verbose_html=False):
|
||||
"""Shows target map using prettytable
|
||||
|
||||
|
|
|
@ -145,9 +145,11 @@ def main():
|
|||
help="list available programs in order and exit")
|
||||
|
||||
group.add_argument("-S", "--list-matrix",
|
||||
action="store_true",
|
||||
dest="supported_ides",
|
||||
default=False,
|
||||
const="matrix",
|
||||
choices=["matrix", "ides"],
|
||||
nargs="?",
|
||||
help="displays supported matrix of MCUs and IDEs")
|
||||
|
||||
parser.add_argument("-E",
|
||||
|
@ -188,7 +190,10 @@ def main():
|
|||
|
||||
# Only prints matrix of supported IDEs
|
||||
if options.supported_ides:
|
||||
print_large_string(mcu_ide_matrix())
|
||||
if options.supported_ides == "matrix":
|
||||
print_large_string(mcu_ide_matrix())
|
||||
elif options.supported_ides == "ides":
|
||||
print mcu_ide_list()
|
||||
exit(0)
|
||||
|
||||
# Only prints matrix of supported IDEs
|
||||
|
|
Loading…
Reference in New Issue