Issue #16384 has been updated by eric sorenson.

Parent task set to #17017


----------------------------------------
Bug #16384: `puppet parser validate` tells me to use help when invoked correctly
https://projects.puppetlabs.com/issues/16384#change-73819

Author: Andrew  Parker
Status: Accepted
Priority: Normal
Assignee: 
Category: parser
Target version: 3.x
Affected Puppet version: 
Keywords: errors
Branch: 


The `puppet parser validate` command, when invoked correctly, but with input 
that does not parse correctly exits with a non-zero status, but also tells me 
to execute `puppet help parser validate` for how to use the command. It should 
only show that message if I invoked the command incorrectly.

<pre>
[13:53:24][Ruby(ruby-1.8.7-p358)][Git(3.x)] andy:puppet
> echo "notice(1)"  | puppet parser validate
[13:53:42][Ruby(ruby-1.8.7-p358)][Git(3.x)] andy:puppet
> echo $?
0
[13:53:49][Ruby(ruby-1.8.7-p358)][Git(3.x)] andy:puppet
> echo "1"  | puppet parser validate
Error: Could not parse for environment production: Syntax error at end of file 
at line 2
Error: Try 'puppet help parser validate' for usage
[13:53:53][Ruby(ruby-1.8.7-p358)][Git(3.x)] andy:puppet
> echo $?
1
</pre>


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