Issue #15186 has been updated by Chris Price.

So here is what makes this challenging; imagine this command:

    puppet --mode user catalog

Now, ideally, this would be valid... because the face that you are calling is 
the 'catalog' face, and it does indeed have a '--mode' option that accepts the 
value 'user'.  However, the problem is that we don't *know* that until we 
determine which word in the command is the face name.  When parsing this 
command line string we can easily ignore the "--mode" part because we know it's 
the name of an option; however, we don't know whether or not the option accepts 
a value.  So we don't really have any way of knowing whether to treat "user" as 
the value of an option or as the face name... all of the approaches that I can 
think of for trying to solve this problem seem hacky and perhaps slow...
----------------------------------------
Bug #15186: Global arguments should be allowed before or after face name
https://projects.puppetlabs.com/issues/15186#change-65649

Author: Luke Kanies
Status: Accepted
Priority: High
Assignee: 
Category: 
Target version: 
Affected Puppet version: 3.0.0rc3
Keywords: 
Branch: 


This code works:

  puppet apply --config ~/.puppet/puppet.conf foo.pp

But this fails:

  puppet --config ~/.puppet/puppet.conf apply foo.pp

With this error:

  See 'puppet help' for help on available puppet subcommands

(Note the complete uselessness of that error.)

These should be fixed to work either side, or at least provide a useful error.


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