mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
- make it more clear that things not required are optional.
This commit is contained in:
parent
3eaa7c5219
commit
390a583616
1 changed files with 5 additions and 1 deletions
|
@ -39,7 +39,11 @@ This is what it might look like in your config file:
|
|||
if setting_name.is_a?(Regexp)
|
||||
setting_name = "/" + setting_name.to_s.gsub(/^\(\?-mix:/, "").gsub(/\)$/, "") + "/"
|
||||
end
|
||||
annotation += " (required)" if config[:required]
|
||||
if config[:required]
|
||||
annotation += " (required)"
|
||||
else
|
||||
annotation += " (optional)"
|
||||
end
|
||||
annotation += ", default: #{config[:default].inspect}" if config[:default]
|
||||
-%>
|
||||
<a href="#setting_<%= setting_name %>"><%= setting_name %></a> => ... # <%= annotation %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue