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
Branches
Tags
No related merge requests found
......@@ -35,7 +35,7 @@ if __name__ == '__main__':
parser.add_argument("--force", action="store_true",
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.")
parser.add_argument("--DS-init-opcua", action="store_true",
......@@ -71,8 +71,8 @@ if __name__ == '__main__':
logger.debug(args)
if "conf_file" in args:
FofbTool.Configuration.loadconfig(args.conf_file)
if not args.fileconfig is None:
FofbTool.Configuration.loadconfig(args.fileconfig)
FofbTool.Configuration.logdebugconf()
## Check running
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment