Skip to content

Commit

Permalink
Make public cli options string constants
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Mar 25, 2024
1 parent 831b03c commit 664a2e6
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 42 deletions.
82 changes: 41 additions & 41 deletions gui/src/main/java/org/verapdf/cli/commands/VeraCliArgParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,47 +71,47 @@ public class VeraCliArgParser {
static final VeraCliArgParser DEFAULT_ARGS = new VeraCliArgParser();
static final String FLAG_SEP = "-"; //$NON-NLS-1$
static final String OPTION_SEP = "--"; //$NON-NLS-1$
static final String HELP_FLAG = FLAG_SEP + 'h'; //$NON-NLS-1$
static final String HELP = OPTION_SEP + "help"; //$NON-NLS-1$
static final String VERSION = OPTION_SEP + "version"; //$NON-NLS-1$
static final String FLAVOUR_FLAG = FLAG_SEP + 'f'; //$NON-NLS-1$
static final String FLAVOUR = OPTION_SEP + "flavour"; //$NON-NLS-1$
static final String DEFAULT_FLAVOUR_FLAG = FLAG_SEP + "df"; //$NON-NLS-1$
static final String DEFAULT_FLAVOUR = OPTION_SEP + "defaultflavour"; //$NON-NLS-1$
static final String SUCCESS = OPTION_SEP + "success"; //$NON-NLS-1$
static final String PASSED = OPTION_SEP + "passed"; //$NON-NLS-1$
static final String LIST_FLAG = FLAG_SEP + 'l'; //$NON-NLS-1$
static final String LIST = OPTION_SEP + "list"; //$NON-NLS-1$
static final String LOAD_PROFILE_FLAG = FLAG_SEP + 'p'; //$NON-NLS-1$
static final String LOAD_PROFILE = OPTION_SEP + "profile"; //$NON-NLS-1$
static final String EXTRACT_FLAG = FLAG_SEP + 'x'; //$NON-NLS-1$
static final String EXTRACT = OPTION_SEP + "extract"; //$NON-NLS-1$
static final String FORMAT = OPTION_SEP + "format"; //$NON-NLS-1$
static final String RECURSE_FLAG = FLAG_SEP + 'r'; //$NON-NLS-1$
static final String RECURSE = OPTION_SEP + "recurse"; //$NON-NLS-1$
static final String SERVER_MODE = OPTION_SEP + "servermode"; //$NON-NLS-1$
static final String VERBOSE_FLAG = FLAG_SEP + 'v'; //$NON-NLS-1$
static final String VERBOSE = OPTION_SEP + "verbose"; //$NON-NLS-1$
static final String DEBUG_FLAG = FLAG_SEP + 'd'; //$NON-NLS-1$
static final String DEBUG = OPTION_SEP + "debug"; //$NON-NLS-1$
static final String MAX_FAILURES_DISPLAYED = OPTION_SEP + "maxfailuresdisplayed"; //$NON-NLS-1$
static final String MAX_FAILURES = OPTION_SEP + "maxfailures"; //$NON-NLS-1$
static final String FIX_METADATA = OPTION_SEP + "fixmetadata"; //$NON-NLS-1$
static final String FIX_METADATA_PREFIX = OPTION_SEP + "prefix"; //$NON-NLS-1$
static final String FIX_METADATA_FOLDER = OPTION_SEP + "savefolder"; //$NON-NLS-1$
static final String NON_PDF_EXTENSION = OPTION_SEP + "nonpdfext";
static final String POLICY_FILE = OPTION_SEP + "policyfile"; //$NON-NLS-1$
static final String ADD_LOGS = OPTION_SEP + "addlogs"; //$NON-NLS-1$
static final String DISABLE_ERROR_MESSAGES = OPTION_SEP + "disableerrormessages"; //$NON-NLS-1$
static final String PASSWORD = OPTION_SEP + "password"; //$NON-NLS-1$
static final String LOG_LEVEL = OPTION_SEP + "loglevel"; //$NON-NLS-1$
static final String PROGRESS = OPTION_SEP + "progress"; //$NON-NLS-1$
static final String PROFILES_WIKI_FLAG = FLAG_SEP + "pw";
static final String PROFILES_WIKI = OPTION_SEP + "profilesWiki";
static final String VALID_OFF_FLAG = FLAG_SEP + 'o'; //$NON-NLS-1$
static final String VALID_OFF = OPTION_SEP + "off"; //$NON-NLS-1$
static final String NUMBER_OF_PROCESSES_FLAG = OPTION_SEP + "processes"; //$NON-NLS-1$
static final String VERA_PATH_FLAG = OPTION_SEP + "verapath";
public static final String HELP_FLAG = FLAG_SEP + 'h'; //$NON-NLS-1$
public static final String HELP = OPTION_SEP + "help"; //$NON-NLS-1$
public static final String VERSION = OPTION_SEP + "version"; //$NON-NLS-1$
public static final String FLAVOUR_FLAG = FLAG_SEP + 'f'; //$NON-NLS-1$
public static final String FLAVOUR = OPTION_SEP + "flavour"; //$NON-NLS-1$
public static final String DEFAULT_FLAVOUR_FLAG = FLAG_SEP + "df"; //$NON-NLS-1$
public static final String DEFAULT_FLAVOUR = OPTION_SEP + "defaultflavour"; //$NON-NLS-1$
public static final String SUCCESS = OPTION_SEP + "success"; //$NON-NLS-1$
public static final String PASSED = OPTION_SEP + "passed"; //$NON-NLS-1$
public static final String LIST_FLAG = FLAG_SEP + 'l'; //$NON-NLS-1$
public static final String LIST = OPTION_SEP + "list"; //$NON-NLS-1$
public static final String LOAD_PROFILE_FLAG = FLAG_SEP + 'p'; //$NON-NLS-1$
public static final String LOAD_PROFILE = OPTION_SEP + "profile"; //$NON-NLS-1$
public static final String EXTRACT_FLAG = FLAG_SEP + 'x'; //$NON-NLS-1$
public static final String EXTRACT = OPTION_SEP + "extract"; //$NON-NLS-1$
public static final String FORMAT = OPTION_SEP + "format"; //$NON-NLS-1$
public static final String RECURSE_FLAG = FLAG_SEP + 'r'; //$NON-NLS-1$
public static final String RECURSE = OPTION_SEP + "recurse"; //$NON-NLS-1$
public static final String SERVER_MODE = OPTION_SEP + "servermode"; //$NON-NLS-1$
public static final String VERBOSE_FLAG = FLAG_SEP + 'v'; //$NON-NLS-1$
public static final String VERBOSE = OPTION_SEP + "verbose"; //$NON-NLS-1$
public static final String DEBUG_FLAG = FLAG_SEP + 'd'; //$NON-NLS-1$
public static final String DEBUG = OPTION_SEP + "debug"; //$NON-NLS-1$
public static final String MAX_FAILURES_DISPLAYED = OPTION_SEP + "maxfailuresdisplayed"; //$NON-NLS-1$
public static final String MAX_FAILURES = OPTION_SEP + "maxfailures"; //$NON-NLS-1$
public static final String FIX_METADATA = OPTION_SEP + "fixmetadata"; //$NON-NLS-1$
public static final String FIX_METADATA_PREFIX = OPTION_SEP + "prefix"; //$NON-NLS-1$
public static final String FIX_METADATA_FOLDER = OPTION_SEP + "savefolder"; //$NON-NLS-1$
public static final String NON_PDF_EXTENSION = OPTION_SEP + "nonpdfext";
public static final String POLICY_FILE = OPTION_SEP + "policyfile"; //$NON-NLS-1$
public static final String ADD_LOGS = OPTION_SEP + "addlogs"; //$NON-NLS-1$
public static final String DISABLE_ERROR_MESSAGES = OPTION_SEP + "disableerrormessages"; //$NON-NLS-1$
public static final String PASSWORD = OPTION_SEP + "password"; //$NON-NLS-1$
public static final String LOG_LEVEL = OPTION_SEP + "loglevel"; //$NON-NLS-1$
public static final String PROGRESS = OPTION_SEP + "progress"; //$NON-NLS-1$
public static final String PROFILES_WIKI_FLAG = FLAG_SEP + "pw";
public static final String PROFILES_WIKI = OPTION_SEP + "profilesWiki";
public static final String VALID_OFF_FLAG = FLAG_SEP + 'o'; //$NON-NLS-1$
public static final String VALID_OFF = OPTION_SEP + "off"; //$NON-NLS-1$
public static final String NUMBER_OF_PROCESSES_FLAG = OPTION_SEP + "processes"; //$NON-NLS-1$
public static final String VERA_PATH_FLAG = OPTION_SEP + "verapath";
public static final String USE_CONFIG = OPTION_SEP + "config";

@Parameter(names = { HELP_FLAG, HELP }, description = "Shows this message and exits.", help = true)
Expand Down
2 changes: 1 addition & 1 deletion installer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
</configuration>
</execution>
<execution>
<!-- Copy REAME and manual from project root dir. -->
<!-- Copy README and manual from project root dir. -->
<id>verapdf-documents</id>
<phase>validate</phase>
<goals>
Expand Down

0 comments on commit 664a2e6

Please sign in to comment.