Mercurial > hg > Database > Christie
changeset 46:21cf500585d1
fix arg option
author | akahori |
---|---|
date | Tue, 07 Aug 2018 11:50:25 +0900 |
parents | 12c9bf81d429 |
children | 782c66b3b38f |
files | src/main/java/christie/topology/manager/TopologyManagerConfig.java |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/christie/topology/manager/TopologyManagerConfig.java Thu Aug 02 11:45:46 2018 +0900 +++ b/src/main/java/christie/topology/manager/TopologyManagerConfig.java Tue Aug 07 11:50:25 2018 +0900 @@ -9,19 +9,18 @@ public TopologyManagerConfig(String[] args) { for (int i = 0; i < args.length; i++) { - if ("-conf".equals(args[i])) { + if ("--confFile".equals(args[i])) { confFilePath = args[++i]; - } else if ("--Topology".equals(args[i])) { + } else if ("--topology".equals(args[i])) { String typeName = args[++i]; if ("tree".equals(typeName)) { type = TopologyType.Tree; } - } else if ("--Child".equals(args[i])) { + } else if ("--child".equals(args[i])) { hasChild = Integer.parseInt(args[++i]); } else if ("--showTime".equals(args[i])) { showTime = true; } } - } }