Issue #6787 has been updated by Daniel Pittman.
The proposed implementation uses the extended version of option declaration:
option "--foo [BAR]" do
desc "whatever…"
default_to 12
end
This seems to satisfy the need without making the easy mode over-complicated.
Implementation will follow feedback and actual demand.
----------------------------------------
Feature #6787: Introduce option defaulting behavior
https://projects.puppetlabs.com/issues/6787
Author: Pieter van de Bruggen
Status: Accepted
Priority: Normal
Assignee:
Category: interfaces
Target version: 2.6.x
Affected Puppet version:
Keywords:
Branch:
Actions should be able to specify the default values to use for unspecified
options.
Additionally, since an interface may wish to specify a default for options for
all included actions, defaults should be providable at this level as well.
Certain options (like `--format`) additionally seem like they would benefit
from a "global" default.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.