Issue #6750 has been updated by Daniel Pittman.

Luke Kanies wrote:
> We already use gnu style options, so that wouldn't be a behavior change at 
> all.
> 
> You're right that this would be incompatible with existing commands; my plan 
> was to use this mode on new commands and migrate the old commands as 
> possible.  I would be confusing to have the two modes, but less confusing in 
> the end, I think.

I care much less about that, and much more about the fact that these highly 
position-sensitive options cause me trouble every time I hit a tool that uses 
them.  I don't think they are a big win for the interfaces work, if we can 
possibly avoid them.

> I am not yet clear on the details of how it would work.  My plan was to 
> implement it and see how it worked in practice, and what kind of flexibility 
> there actually is.  I'm not sure we can actually tell what's better without 
> implementing both and trying them out.

One other problem I can see is, in essence, how would you envision passing this 
in a richer data structure?  It would be good to think about mapping these to, 
say, RPC calls, or messages, and that gets kind of confusing when the target is 
a single "action", but we need to pass options to multiple places?
----------------------------------------
Feature #6750: Interfaces need to support "posix style" option handling
https://projects.puppetlabs.com/issues/6750

Author: Paul Berry
Status: Accepted
Priority: Normal
Assignee: 
Category: interface
Target version: 2.6.x
Affected Puppet version: 
Keywords: 
Branch: 


Posix style, in this context, means that Puppet needs to distinguish between 
options specified in three possible locations:

puppet <a> interface_name <b> action_name <c>

Options at location <a> are intended to be global options (those 
applicable to all Puppet interfaces and actions, like --debug)
Options at location <b> are intended to be interface-specific options
Options at location <c> are intended to be action-specific options.


-- 
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.

Reply via email to