Skip to content
Snippets Groups Projects
Commit b70486b0 authored by BRONES Romain's avatar BRONES Romain
Browse files

fix(CLI): fix file configuration option

* Change name, so to not collide with --conf
* Fix test for values
parent a64e6309
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,7 @@ if __name__ == '__main__': ...@@ -35,7 +35,7 @@ if __name__ == '__main__':
parser.add_argument("--force", action="store_true", parser.add_argument("--force", action="store_true",
help="Force operation even if FOFB is running.") help="Force operation even if FOFB is running.")
parser.add_argument("--conf-file", type=str, parser.add_argument("--fileconfig", type=str,
help="Path to config file to apply.") help="Path to config file to apply.")
parser.add_argument("--DS-init-opcua", action="store_true", parser.add_argument("--DS-init-opcua", action="store_true",
...@@ -71,8 +71,8 @@ if __name__ == '__main__': ...@@ -71,8 +71,8 @@ if __name__ == '__main__':
logger.debug(args) logger.debug(args)
if "conf_file" in args: if not args.fileconfig is None:
FofbTool.Configuration.loadconfig(args.conf_file) FofbTool.Configuration.loadconfig(args.fileconfig)
FofbTool.Configuration.logdebugconf() FofbTool.Configuration.logdebugconf()
## Check running ## Check running
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment