From ca30147295a4047afed83f9b1989ee3e57cf3e6e Mon Sep 17 00:00:00 2001 From: Maxim Date: Sun, 24 Mar 2024 23:11:17 +0300 Subject: [PATCH] Make public cli options string constants --- .../cli/commands/VeraCliArgParser.java | 82 +++++++++---------- installer/pom.xml | 2 +- 2 files changed, 42 insertions(+), 42 deletions(-) diff --git a/gui/src/main/java/org/verapdf/cli/commands/VeraCliArgParser.java b/gui/src/main/java/org/verapdf/cli/commands/VeraCliArgParser.java index 97eb62e2..9f9c7f5b 100644 --- a/gui/src/main/java/org/verapdf/cli/commands/VeraCliArgParser.java +++ b/gui/src/main/java/org/verapdf/cli/commands/VeraCliArgParser.java @@ -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) diff --git a/installer/pom.xml b/installer/pom.xml index febca81a..9c81b1b8 100644 --- a/installer/pom.xml +++ b/installer/pom.xml @@ -141,7 +141,7 @@ - + verapdf-documents validate