Skip to content

Commit

Permalink
Make the main-args example less confusing
Browse files Browse the repository at this point in the history
The use of arguments starting with `-D` intended for delivery
to the main class on the Java side is a bit odd, since `-D`
arguments are typically given to the JVM, not the main class.
So let's do something else, since it's all theoretical here anyway.
  • Loading branch information
ctrueden committed Feb 15, 2024
1 parent b20dffe commit a3807f6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions jaunch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ jvm-args = [
# line with matching rules becomes the main class, with subsequent lines ignored.
#
# This field is useful if you want to launch a different main class depending on
# criteria such as OS, CPU architecture, or which Jaunch options are given on the CLI.
# criteria such as OS, CPU architecture, or which options are given on the CLI.
#main-class-candidates = [
# '--fizzbuzz|org.fizzbuzz.FizzBuzz'
# '--main-class|${main-class}',
Expand All @@ -712,9 +712,11 @@ jvm-args = [
# Arguments to pass to the main class on the Java side.
#
# This is the other half of the magic sauce, along with jvm-args above:
# Jaunch options and other criteria get translated into main arguments here.
# Options and other criteria get translated into main arguments here.
# See the 'jvm-root-paths' section above for a thorough explanation.
#main-args = [
# '--fizz|-Dfizzbuzz.mode=fizz',
# '--buzz|-Dfizzbuzz.mode=buzz',
# '!--fizz|!--buzz|--mode=number',
# '--fizz|!--buzz|--mode=fizz',
# '--buzz|!--fizz|--mode=buzz',
# '--fizz|--buzz|--mode=fizzbuzz',
#]

0 comments on commit a3807f6

Please sign in to comment.