-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
rathnapandi
committed
Oct 24, 2024
1 parent
7b45dc6
commit 2820a8f
Showing
3 changed files
with
28 additions
and
27 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
modules/apis/src/main/java/com/axway/apim/OptionsCommon.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.axway.apim; | ||
|
||
import com.axway.apim.lib.CLIOptions; | ||
import org.apache.commons.cli.Option; | ||
|
||
public class OptionsCommon { | ||
|
||
public void addDeprecateAndRetired(CLIOptions options){ | ||
Option option = new Option("refAPIDeprecate", true, "If set the old/reference API will be flagged as deprecated. Defaults to false."); | ||
option.setRequired(false); | ||
option.setArgName("true"); | ||
options.addOption(option); | ||
|
||
option = new Option("refAPIRetire", true, "If set the old/reference API will be retired. Default to false."); | ||
option.setRequired(false); | ||
option.setArgName("true"); | ||
options.addOption(option); | ||
|
||
option = new Option("refAPIRetireDate", true, "Sets the retirement date of the old API. Supported formats: \"dd.MM.yyyy\", \"dd/MM/yyyy\", \"yyyy-MM-dd\", \"dd-MM-yyyy\""); | ||
option.setRequired(false); | ||
option.setArgName("2021/06/30"); | ||
options.addOption(option); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters