Skip to content
Browse files

cli: Disable "ExpandAtSign" JCommander option

The option allows reading parameters from a file, see [1]. It is enabled
by default, as a result parameters cannot start with "@", because
JCommander then interprets the following characters as a file path to read
parameters from.

For example, this problem occurs with the download command, if a Git tag
starting with "@" is passed to the "--vcs-revision" option.

As the ExpandAtSign feature is unused and there is no workaround like
escaping the parameter that starts with "@", disable the option.


Signed-off-by: Martin Nonnenmacher <>
  • Loading branch information...
mnonnenmacher committed Aug 12, 2019
1 parent 5ddc0a9 commit 42b2b075e52ff879c954e87f446e98eeef1b5b04
Showing with 1 addition and 0 deletions.
  1. +1 −0 cli/src/main/kotlin/Main.kt
@@ -81,6 +81,7 @@ object Main : CommandWithHelp() {
fun run(args: Array<String>): Int {
val jc = JCommander(this).apply {
programName = TOOL_NAME

0 comments on commit 42b2b07

Please sign in to comment.
You can’t perform that action at this time.