2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.netconf.test.tool.scale.util;
12 import net.sourceforge.argparse4j.ArgumentParsers;
13 import net.sourceforge.argparse4j.annotation.Arg;
14 import net.sourceforge.argparse4j.inf.ArgumentParser;
15 import net.sourceforge.argparse4j.inf.ArgumentParserException;
17 public class ScaleUtilParameters {
19 @Arg(dest = "distro-folder")
20 public File distroFolder;
22 static ArgumentParser getParser() {
23 final ArgumentParser parser = ArgumentParsers.newArgumentParser("scale test helper");
25 parser.addArgument("--distribution-folder")
27 .help("Directory where the karaf distribution for controller is located")
28 .dest("distro-folder");
33 static ScaleUtilParameters parseArgs(final String[] args, final ArgumentParser parser) {
34 final ScaleUtilParameters parameters = new ScaleUtilParameters();
36 parser.parseArgs(args, parameters);
38 } catch (ArgumentParserException e) {
39 parser.handleError(e);