mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[Java] Add known repetitive options
IDEA-359245 GitOrigin-RevId: 5cc7305deb0a8dcd98989e5ba03641ad8c4f523d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
19770e4674
commit
a3c9ca4918
@@ -107,6 +107,7 @@ class JavaShellCommandSpecsProvider : ShellCommandSpecsProvider {
|
||||
}
|
||||
description(JavaTerminalBundle.message(getOptionBundleKey(optionName)))
|
||||
if (!JavaTerminalBundle.isMessageInBundle(getOptionArgumentBundleKey(optionName))) return@option
|
||||
if (KNOWN_REPETITIVE_OPTIONS.contains(presentableName)) repeatTimes = 0
|
||||
if (KNOWN_OPTIONS_WITH_EMPTY_SEPARATOR.contains(presentableName)) separator = ""
|
||||
argument {
|
||||
displayName(JavaTerminalBundle.message(getOptionArgumentBundleKey(optionName)))
|
||||
@@ -163,4 +164,12 @@ private val KNOWN_OPTIONS_WITH_EMPTY_SEPARATOR = setOf(
|
||||
"--illegal-access="
|
||||
)
|
||||
|
||||
private val KNOWN_REPETITIVE_OPTIONS = setOf(
|
||||
"--add-opens",
|
||||
"--patch-module",
|
||||
"--limit-modules",
|
||||
"--add-reads",
|
||||
"--add-exports",
|
||||
)
|
||||
|
||||
private val LOG = Logger.getInstance(JavaShellCommandSpecsProvider::class.java)
|
||||
Reference in New Issue
Block a user