File tree 2 files changed +10
-8
lines changed
spring-core/src/main/java/org/springframework/core/env
2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 28
28
* <p>That is, options must be prefixed with "{@code --}" and may or may not
29
29
* specify a value. If a value is specified, the name and value must be separated
30
30
* <em>without spaces</em> by an equals sign ("="). The value may optionally be
31
- * an empty string.
31
+ * an empty string. if the option is present and has multiple values (e. g. "--foo=bar --foo=baz"),
32
+ * the values are parsed as a collection.
32
33
*
33
34
* <h4>Valid examples of option arguments</h4>
34
35
* <pre class="code">
37
38
* --foo=""
38
39
* --foo=bar
39
40
* --foo="bar then baz"
40
- * --foo=bar,baz,biz</pre>
41
+ * --foo=bar,baz,biz
42
+ * --foo=bar --foo=baz --foo=biz</pre>
41
43
*
42
44
* <h4>Invalid examples of option arguments</h4>
43
45
* <pre class="code">
44
46
* -foo
45
47
* --foo bar
46
- * --foo = bar
47
- * --foo=bar --foo=baz --foo=biz</pre>
48
+ * --foo = bar</pre>
48
49
*
49
50
* <h3>End of option arguments</h3>
50
51
* <p>This parser supports the POSIX "end of options" delimiter, meaning that any
Original file line number Diff line number Diff line change 40
40
* <p>That is, options must be prefixed with "{@code --}" and may or may not
41
41
* specify a value. If a value is specified, the name and value must be separated
42
42
* <em>without spaces</em> by an equals sign ("="). The value may optionally be
43
- * an empty string.
43
+ * an empty string. if the option is present and has multiple values (e. g. "--foo=bar --foo=baz"),
44
+ * the values are parsed as a collection.
44
45
*
45
46
* <h4>Valid examples of option arguments</h4>
46
47
* <pre class="code">
49
50
* --foo=""
50
51
* --foo=bar
51
52
* --foo="bar then baz"
52
- * --foo=bar,baz,biz</pre>
53
+ * --foo=bar,baz,biz
54
+ * --foo=bar --foo=baz --foo=biz</pre>
53
55
*
54
56
* <h4>Invalid examples of option arguments</h4>
55
57
* <pre class="code">
56
58
* -foo
57
59
* --foo bar
58
- * --foo = bar
59
- * --foo=bar --foo=baz --foo=biz</pre>
60
+ * --foo = bar</pre>
60
61
*
61
62
* <h3>End of option arguments</h3>
62
63
* <p>The underlying parser supports the POSIX "end of options" delimiter, meaning
You can’t perform that action at this time.
0 commit comments