| .. | .. |
|---|
| 88 | 88 | if (cmd.hasOption('c')) { |
|---|
| 89 | 89 | String reqFilename = cmd.getOptionValue("rfile"); |
|---|
| 90 | 90 | checkMandatoryParameter(reqFilename, "rfile"); |
|---|
| 91 | | - String server = cmd.getOptionValue("server"); |
|---|
| 92 | | - checkMandatoryParameter(server, "server"); |
|---|
| 93 | 91 | |
|---|
| 94 | 92 | log.warn("This command is not yet implemented"); |
|---|
| 95 | 93 | System.exit(0); |
|---|
| 96 | 94 | } |
|---|
| 97 | 95 | |
|---|
| 98 | 96 | if (cmd.hasOption('t')) { |
|---|
| 99 | | - String server = cmd.getOptionValue("server"); |
|---|
| 100 | | - checkMandatoryParameter(server, "server"); |
|---|
| 101 | | - |
|---|
| 102 | 97 | log.warn("This command is not yet implemented"); |
|---|
| 103 | 98 | System.exit(0); |
|---|
| 104 | 99 | } |
|---|
| .. | .. |
|---|
| 106 | 101 | if (cmd.hasOption('r')) { |
|---|
| 107 | 102 | String licFilename = cmd.getOptionValue("renew"); |
|---|
| 108 | 103 | checkMandatoryParameter(licFilename, "renew"); |
|---|
| 109 | | - String server = cmd.getOptionValue("server"); |
|---|
| 110 | | - checkMandatoryParameter(server, "server"); |
|---|
| 111 | | - |
|---|
| 112 | 104 | log.warn("This command is not yet implemented"); |
|---|
| 113 | 105 | System.exit(0); |
|---|
| 114 | 106 | } |
|---|
| .. | .. |
|---|
| 173 | 165 | |
|---|
| 174 | 166 | options.addOption("h", "help", false, "Show help."); |
|---|
| 175 | 167 | options.addOption(OptionBuilder.withArgName("req_file").withLongOpt("rfile").withDescription("Set request file for its generation or for license requesting.").hasArg(true).create('r')); |
|---|
| 176 | | - options.addOption(OptionBuilder.withArgName("url_license_server").withLongOpt("server").withDescription("License server url.").hasArg(true).create('s')); |
|---|
| 168 | + // options.addOption(OptionBuilder.withArgName("url_license_server").withLongOpt("server").withDescription("License server url.").hasArg(true).create('s')); |
|---|
| 177 | 169 | options.addOption(OptionBuilder.withArgName("lic_file").withLongOpt("validate").withDescription("Validate lic file.").hasArg(true).create('l')); |
|---|
| 178 | 170 | |
|---|
| 179 | 171 | options.addOption("g", "gen_request", false, "Generate request file. If --rfile parameter is missing then It is generated in current directory."); |
|---|
| 180 | | - options.addOption(OptionBuilder.withArgName("lic_file").withLongOpt("create").withDescription("Request a license file from server. --server parameters is mandatory.").hasArg(true).create('c')); |
|---|
| 172 | + options.addOption(OptionBuilder.withArgName("lic_file").withLongOpt("create").withDescription("Request a license file from server.").hasArg(true).create('c')); |
|---|
| 181 | 173 | options.addOption("t", "test_lc", false, "Test if License Server (LC) is available. --server parameter is mandatory."); |
|---|
| 182 | | - options.addOption(OptionBuilder.withArgName("lic_file").withLongOpt("renew").withDescription("Synchronize/renew the current license file. --server parameter is mandatory.").hasArg(true).create('r')); |
|---|
| 174 | + options.addOption(OptionBuilder.withArgName("lic_file").withLongOpt("renew").withDescription("Synchronize/renew the current license file.").hasArg(true).create('r')); |
|---|
| 183 | 175 | |
|---|
| 184 | 176 | return options; |
|---|
| 185 | 177 | } |
|---|