Issue #5840 has been updated by Daniel Pittman. Assignee deleted (Daniel Pittman)
---------------------------------------- Bug #5840: Util/command_line treats options as applications https://projects.puppetlabs.com/issues/5840#change-92419 * Author: Luke Kanies * Status: Accepted * Priority: Normal * Assignee: * Category: Faces * Target version: 3.x * Affected Puppet version: 2.6.0 * Keywords: * Branch: ---------------------------------------- Given this command line with a custom application: <pre> $ puppet --trace data certificate find foo </pre> You get an exception from the 'apply' application, rather than the 'data' application: <pre> luke@syringe $ puppet --trace data certificate find syringe /Users/luke/puppet/lib/puppet/application/apply.rb:82:in `main' /Users/luke/puppet/lib/puppet/application/apply.rb:35:in `run_command' /Users/luke/puppet/lib/puppet/application.rb:287:in `run' /Users/luke/puppet/lib/puppet/application.rb:393:in `exit_on_fail' /Users/luke/puppet/lib/puppet/application.rb:287:in `run' /Users/luke/puppet/lib/puppet/util/command_line.rb:59:in `execute' /Users/luke/puppet/bin/puppet:4 Could not run: Could not find file data luke@syringe $ </pre> If you move the '--trace' to after 'data', then it works fine. This should either work (which seems the best choice) or fail with a useful error message, rather than loading the wrong application entirely. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
