@@ -1272,7 +1272,7 @@ def __init__(self):
1272
1272
"""
1273
1273
# Get the script name without .py extension
1274
1274
self .ci_tool_name = os .path .splitext (os .path .basename (__file__ ))[0 ]
1275
- self .ci_tool_version = "0.2 .0"
1275
+ self .ci_tool_version = "0.3 .0"
1276
1276
self .__create_parser ()
1277
1277
1278
1278
args = self .parser .parse_args (namespace = argparse .Namespace (ci_parser = self ))
@@ -1300,6 +1300,15 @@ def __main_parser_func(self, args):
1300
1300
"""
1301
1301
Main parser function of arduino CI cli tool
1302
1302
"""
1303
+ self .parser .print_help ()
1304
+
1305
+ def __get_ci_config (self , args ):
1306
+ """
1307
+ Get ci configuration instance
1308
+ If no configuration file is provided,
1309
+ it will use the default configuration file
1310
+ in the root path of the asset.
1311
+ """
1303
1312
if args .ci_matrix_yml is None :
1304
1313
args .ci_matrix_yml = os .path .join (args .root_path , "ci-matrix-config.yml" )
1305
1314
@@ -1337,23 +1346,23 @@ def print_config(queried_config, args):
1337
1346
else :
1338
1347
print (queried_config )
1339
1348
1340
- ci_config = self .__main_parser_func (args )
1349
+ ci_config = self .__get_ci_config (args )
1341
1350
queried_config = get_queried_config (ci_config , args )
1342
1351
print_config (queried_config , args )
1343
1352
1344
1353
def __compile_parser_func (self , args ):
1345
1354
"""
1346
1355
Compile parser function of arduino CI cli tool
1347
1356
"""
1348
- ci_config = self .__main_parser_func (args )
1357
+ ci_config = self .__get_ci_config (args )
1349
1358
ci_compiler = CiCompiler (ci_config )
1350
1359
ci_compiler .compile (args .fqbn , args .sketch )
1351
1360
1352
1361
def __core_install_parser_func (self , args ):
1353
1362
"""
1354
1363
Core install parser function of arduino CI cli tool
1355
1364
"""
1356
- ci_config = self .__main_parser_func (args )
1365
+ ci_config = self .__get_ci_config (args )
1357
1366
ci_core_installer = CiCoreInstaller (ci_config )
1358
1367
ci_core_installer .install (args .fqbn )
1359
1368
0 commit comments