Skip to content

Commit 57ad6a0

Browse files
committed
Specifying -S option (--supported) should not require -i/--ide (#326)
1 parent 74bd5b3 commit 57ad6a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mbed/mbed.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2157,7 +2157,7 @@ def test_(toolchain=None, target=None, compile_list=False, run_list=False, compi
21572157

21582158
# Export command
21592159
@subcommand('export',
2160-
dict(name=['-i', '--ide'], help='IDE to create project files for. Example: UVISION4, UVISION5, GCC_ARM, IAR, COIDE', required=True),
2160+
dict(name=['-i', '--ide'], help='IDE to create project files for. Example: UVISION4, UVISION5, GCC_ARM, IAR, COIDE'),
21612161
dict(name=['-m', '--target'], help='Export for target MCU. Example: K64F, NUCLEO_F401RE, NRF51822...'),
21622162
dict(name='--source', action='append', help='Source directory. Default: . (current dir)'),
21632163
dict(name=['-c', '--clean'], action='store_true', help='Clean the build directory before compiling'),
@@ -2194,7 +2194,7 @@ def export(ide=None, target=None, source=False, clean=False, supported=False):
21942194

21952195
popen(['python', '-u', os.path.join(tools_dir, 'project.py')]
21962196
+ list(chain.from_iterable(izip(repeat('-D'), macros)))
2197-
+ ['-i', ide.lower(), '-m', target]
2197+
+ (['-i', ide.lower(), '-m', target] if ide else [])
21982198
+ (['-c'] if clean else [])
21992199
+ list(chain.from_iterable(izip(repeat('--source'), source)))
22002200
+ args,

0 commit comments

Comments
 (0)