Issue #6750 has been updated by Luke Kanies.
Daniel Pittman wrote: > > 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. Hmm. It's true that I haven't tried a ton of commands with this style of option handling and it might be confusing. I'd prefer to turn it on and actually put it in front of users, and if at all possible, we should build something that can be switched between modes relatively easily. > 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? In some ways this is exactly why I want this form of option handling -- there are some options that only make sense on the CLI, some that would only make sense in the REST interface, etc. We need a clean mechanism for managing these sets of options and allowing specification by both the developer creating them and the user consuming them. If we can do that easily and treat all options equivalently, then maybe POSIX-style handling is the wrong step. ---------------------------------------- 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: interfaces 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.
