@@ -2157,7 +2157,7 @@ def test_(toolchain=None, target=None, compile_list=False, run_list=False, compi
2157
2157
2158
2158
# Export command
2159
2159
@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' ),
2161
2161
dict (name = ['-m' , '--target' ], help = 'Export for target MCU. Example: K64F, NUCLEO_F401RE, NRF51822...' ),
2162
2162
dict (name = '--source' , action = 'append' , help = 'Source directory. Default: . (current dir)' ),
2163
2163
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):
2194
2194
2195
2195
popen (['python' , '-u' , os .path .join (tools_dir , 'project.py' )]
2196
2196
+ list (chain .from_iterable (izip (repeat ('-D' ), macros )))
2197
- + ['-i' , ide .lower (), '-m' , target ]
2197
+ + ( ['-i' , ide .lower (), '-m' , target ] if ide else [])
2198
2198
+ (['-c' ] if clean else [])
2199
2199
+ list (chain .from_iterable (izip (repeat ('--source' ), source )))
2200
2200
+ args ,
0 commit comments