From: Joey Hess Date: Sun, 27 Jul 2008 23:19:04 +0000 (-0400) Subject: handle options with no value and no example value X-Git-Tag: 2.60~148 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9be28d7865a335a5e0f3d62a3e96178a6dc74a1b;p=ikiwiki.git handle options with no value and no example value --- diff --git a/IkiWiki/Setup/Standard.pm b/IkiWiki/Setup/Standard.pm index 9d8ec3851..9d4732b6f 100644 --- a/IkiWiki/Setup/Standard.pm +++ b/IkiWiki/Setup/Standard.pm @@ -74,6 +74,9 @@ sub dumpvalues ($@) { #{{{ elsif (exists $info{example}) { push @ret, dumpline($key, $info{example}, $info{type}, "#"); } + else { + push @ret, dumpline($key, "", $info{type}, "#"); + } } return @ret; } #}}} diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn index 6d5056162..04b6ea8e9 100644 --- a/doc/plugins/write.mdwn +++ b/doc/plugins/write.mdwn @@ -388,9 +388,9 @@ describing the option. For example: rebuild => 0, }, -* `type` can be "boolean", "string", "integer", "internal" (used for values - that are not user-visible). The type is the type of the leaf values; - the `%config` option may be an array or hash of these. +* `type` can be "boolean", "string", "integer", "pagespec", or "internal" + (used for values that are not user-visible). The type is the type of + the leaf values; the `%config` option may be an array or hash of these. * `example` can be set to an example value. * `description` is a short description of the option. * `safe` should be false if the option should not be displayed in unsafe