handle options with no value and no example value

master
Joey Hess 2008-07-27 19:19:04 -04:00
parent 36a58fe464
commit 9be28d7865
2 changed files with 6 additions and 3 deletions

View File

@ -74,6 +74,9 @@ sub dumpvalues ($@) { #{{{
elsif (exists $info{example}) { elsif (exists $info{example}) {
push @ret, dumpline($key, $info{example}, $info{type}, "#"); push @ret, dumpline($key, $info{example}, $info{type}, "#");
} }
else {
push @ret, dumpline($key, "", $info{type}, "#");
}
} }
return @ret; return @ret;
} #}}} } #}}}

View File

@ -388,9 +388,9 @@ describing the option. For example:
rebuild => 0, rebuild => 0,
}, },
* `type` can be "boolean", "string", "integer", "internal" (used for values * `type` can be "boolean", "string", "integer", "pagespec", or "internal"
that are not user-visible). The type is the type of the leaf values; (used for values that are not user-visible). The type is the type of
the `%config` option may be an array or hash of these. the leaf values; the `%config` option may be an array or hash of these.
* `example` can be set to an example value. * `example` can be set to an example value.
* `description` is a short description of the option. * `description` is a short description of the option.
* `safe` should be false if the option should not be displayed in unsafe * `safe` should be false if the option should not be displayed in unsafe