mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-21 16:49:43 +01:00
moved the "data" option to the advanced options
Former-commit-id: e18dce070ca110e7c75c868181a576151f08a418
This commit is contained in:
@@ -179,10 +179,6 @@ public final class CliParser {
|
|||||||
.withDescription("A property file to load.")
|
.withDescription("A property file to load.")
|
||||||
.create(ArgumentName.PROP_SHORT);
|
.create(ArgumentName.PROP_SHORT);
|
||||||
|
|
||||||
final Option data = OptionBuilder.withArgName("path").hasArg().withLongOpt(ArgumentName.DATA_DIRECTORY)
|
|
||||||
.withDescription("The location of the data directory used to store persistent data. This option should generally not be set.")
|
|
||||||
.create(ArgumentName.DATA_DIRECTORY_SHORT);
|
|
||||||
|
|
||||||
final Option out = OptionBuilder.withArgName("folder").hasArg().withLongOpt(ArgumentName.OUT)
|
final Option out = OptionBuilder.withArgName("folder").hasArg().withLongOpt(ArgumentName.OUT)
|
||||||
.withDescription("The folder to write reports to. This defaults to the current directory.")
|
.withDescription("The folder to write reports to. This defaults to the current directory.")
|
||||||
.create(ArgumentName.OUT_SHORT);
|
.create(ArgumentName.OUT_SHORT);
|
||||||
@@ -220,7 +216,6 @@ public final class CliParser {
|
|||||||
.addOption(advancedHelp)
|
.addOption(advancedHelp)
|
||||||
.addOption(noUpdate)
|
.addOption(noUpdate)
|
||||||
.addOption(props)
|
.addOption(props)
|
||||||
.addOption(data)
|
|
||||||
.addOption(verboseLog)
|
.addOption(verboseLog)
|
||||||
.addOption(suppressionFile)
|
.addOption(suppressionFile)
|
||||||
.addOption(disableNexusAnalyzer)
|
.addOption(disableNexusAnalyzer)
|
||||||
@@ -236,6 +231,11 @@ public final class CliParser {
|
|||||||
*/
|
*/
|
||||||
@SuppressWarnings("static-access")
|
@SuppressWarnings("static-access")
|
||||||
private void addAdvancedOptions(final Options options) throws IllegalArgumentException {
|
private void addAdvancedOptions(final Options options) throws IllegalArgumentException {
|
||||||
|
|
||||||
|
final Option data = OptionBuilder.withArgName("path").hasArg().withLongOpt(ArgumentName.DATA_DIRECTORY)
|
||||||
|
.withDescription("The location of the H2 Database file. This option should generally not be set.")
|
||||||
|
.create(ArgumentName.DATA_DIRECTORY_SHORT);
|
||||||
|
|
||||||
final Option connectionTimeout = OptionBuilder.withArgName("timeout").hasArg().withLongOpt(ArgumentName.CONNECTION_TIMEOUT)
|
final Option connectionTimeout = OptionBuilder.withArgName("timeout").hasArg().withLongOpt(ArgumentName.CONNECTION_TIMEOUT)
|
||||||
.withDescription("The connection timeout (in milliseconds) to use when downloading resources.")
|
.withDescription("The connection timeout (in milliseconds) to use when downloading resources.")
|
||||||
.create(ArgumentName.CONNECTION_TIMEOUT_SHORT);
|
.create(ArgumentName.CONNECTION_TIMEOUT_SHORT);
|
||||||
@@ -279,6 +279,7 @@ public final class CliParser {
|
|||||||
.addOption(connectionTimeout)
|
.addOption(connectionTimeout)
|
||||||
.addOption(connectionString)
|
.addOption(connectionString)
|
||||||
.addOption(dbUser)
|
.addOption(dbUser)
|
||||||
|
.addOption(data)
|
||||||
.addOption(dbPassword)
|
.addOption(dbPassword)
|
||||||
.addOption(dbDriver)
|
.addOption(dbDriver)
|
||||||
.addOption(dbDriverPath);
|
.addOption(dbDriverPath);
|
||||||
|
|||||||
Reference in New Issue
Block a user