Issue #6750 has been updated by Daniel Pittman.
I would strongly encourage us to head down the path of GNU style (and, er,
{Ruby, Perl, Python}-style) option handling, in which the position of the
argument on the command line is irrelevant.
This does mean that we can't have a `-v` option to mean different global *and*
action-specific things, which I frankly think is a big win: it means we don't
have to explain why putting the option in the wrong place did the wrong thing.
The relatively few tools that require specific positional arguments, like find,
port, and a very small number of other things are generally the ones that cause
the most user confusion when folks are learning how Unix works. (eg: you have
to educate them that find is really a scripting language, despite the syntax
looking like arguments, before they can actually use the tool.)
This would be, roughly, option three.
----------------------------------------
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.