lib/bolt/bolt_option_parser.rb in bolt-2.33.2 vs lib/bolt/bolt_option_parser.rb in bolt-2.34.0
- old
+ new
@@ -86,11 +86,11 @@
case action
when 'convert'
{ flags: OPTIONS[:global] + OPTIONS[:global_config_setters],
banner: PLAN_CONVERT_HELP }
when 'new'
- { flags: OPTIONS[:global] + %w[configfile project],
+ { flags: OPTIONS[:global] + %w[configfile project pp],
banner: PLAN_NEW_HELP }
when 'run'
{ flags: ACTION_OPTS + %w[params compile-concurrency tmpdir hiera-config],
banner: PLAN_RUN_HELP }
when 'show'
@@ -941,9 +941,14 @@
separator "\nMODULE OPTIONS"
define('--[no-]resolve',
'Use --no-resolve to install modules listed in the Puppetfile without resolving modules configured',
'in Bolt project configuration') do |resolve|
@options[:resolve] = resolve
+ end
+
+ separator "\nPLAN OPTIONS"
+ define('--pp', 'Create a new Puppet language plan.') do |pp|
+ @options[:puppet] = pp
end
separator "\nDISPLAY OPTIONS"
define('--filter FILTER', 'Filter tasks and plans by a matching substring') do |filter|
unless /^[a-z0-9_:]+$/.match(filter)