]> scripts.mit.edu Git - www/ikiwiki.git/blob - doc/bugs/Command-line_arguments_should_override_settings_in_the_setup_file.mdwn
triage
[www/ikiwiki.git] / doc / bugs / Command-line_arguments_should_override_settings_in_the_setup_file.mdwn
1 In setting up my wiki I followed the [[setup]] instruction which point
2 to an [[ikiwiki.setup]] file that contains "verbose => 0".
3
4 I hadn't noticed that setting in there, but later when I changed my
5 standard command of:
6
7         ikiwiki --setup ikiwiki.setup
8
9 to:
10
11         ikiwiki --verbose --setup ikiwiki.setup
12
13 I was quite surprised that that change didn't have any effect.
14
15 So two suggestions to fix this:
16
17 1. Make command-line arguments override settings in the setup file
18
19 > This is difficult to do, since reading a setup file replaces values for
20 > config items with the values in the setup file.
21
22 2. Comment out all settings in the example setup file that are simply
23    setting options to their default values. That way, the file will
24    still be self-documenting, but command-line arguments will at least
25    work for these settings while they remain commented out.
26
27 > I've done that, I also fixed some issues with --verbose handling earlier.
28 > --[[Joey]]