since gradle 4.9 it has the feature to pass arguments to the java application via --args ‘myargs…’.
But since i use apache-commons-cli to parse my options, I have to pass them as “-arg1=123”.
So when I execute
./gradlew run --args “-arg1=123”
Gradle fails with:
No argument was provided for command-line option ‘-g’.
What did I do wrong? How do I have to write that command line to get it working?
Many thanks in advance for any help.