| .. | .. |
|---|
| 103 | 103 | } |
|---|
| 104 | 104 | |
|---|
| 105 | 105 | if (cmd.hasOption('r')) { |
|---|
| 106 | | - String licFilename = cmd.getOptionValue("sync"); |
|---|
| 107 | | - checkMandatoryParameter(licFilename, "sync"); |
|---|
| 106 | + String licFilename = cmd.getOptionValue("renew"); |
|---|
| 107 | + checkMandatoryParameter(licFilename, "renew"); |
|---|
| 108 | 108 | String server = cmd.getOptionValue("server"); |
|---|
| 109 | 109 | checkMandatoryParameter(server, "server"); |
|---|
| 110 | 110 | |
|---|
| .. | .. |
|---|
| 176 | 176 | options.addOption(OptionBuilder.withArgName("lic_file").withLongOpt("validate").withDescription("Validate lic file.").hasArg(true).create('l')); |
|---|
| 177 | 177 | |
|---|
| 178 | 178 | options.addOption("g", "gen_request", false, "Generate request file. If --rfile parameter is missing then It is generated in current directory."); |
|---|
| 179 | | - options.addOption("c", "create", false, "Request a license file from server. --rfile and --server parameters are mandatory."); |
|---|
| 179 | + options.addOption(OptionBuilder.withArgName("lic_file").withLongOpt("create").withDescription("Request a license file from server. --server parameters is mandatory.").hasArg(true).create('c')); |
|---|
| 180 | 180 | options.addOption("t", "test_lc", false, "Test if License Server (LC) is available. --server parameter is mandatory."); |
|---|
| 181 | 181 | options.addOption(OptionBuilder.withArgName("lic_file").withLongOpt("renew").withDescription("Synchronize/renew the current license file. --server parameter is mandatory.").hasArg(true).create('r')); |
|---|
| 182 | 182 | |
|---|