Skip to content

Commit f7258cf

Browse files
evan-goodepraiskup
authored andcommitted
doc: --config-opts single-item array wants second to be blank
When specifying an array with a single element using --config-opts, the user should specify the second item as empty, not the first: Wrong: $ mock --config-opts=foo= --config-opts=foo=bar --debug-config | grep foo config_opts['foo'] = ['', 'bar'] Correct: $ mock --config-opts=foo=bar --config-opts=foo= --debug-config | grep foo config_opts['foo'] = ['bar'] The release notes where the feature was announced, Release-Notes-1.4.8.md, were correct but the man page was not.
1 parent 10edef7 commit f7258cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mock/docs/mock.1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@ Override configuration option. Can be used multiple times.
314314
When used multiple times for the same key, it will create an array (if you need
315315
to specify an array value with just a single item, e.g.
316316
\fIconfig_opts["foo"] = ["baz"]\fR, specify it as array of two items with the
317-
empty string as the first item, e.g. \fI--config-opts=foo=
318-
--config-opts=foo=baz\fR).
317+
empty string as the second item, e.g. \fI--config-opts=foo=baz
318+
--config-opts=foo=\fR).
319319

320320
This is evaluated after parsing configs, so command line options override
321321
previously defined options.

0 commit comments

Comments
 (0)