lib/bolt/bolt_option_parser.rb in bolt-1.25.0 vs lib/bolt/bolt_option_parser.rb in bolt-1.26.0

- old
+ new

@@ -26,10 +26,13 @@ { flags: ACTION_OPTS, banner: COMMAND_HELP } when 'file' { flags: ACTION_OPTS + %w[tmpdir], banner: FILE_HELP } + when 'inventory' + { flags: OPTIONS[:inventory] + OPTIONS[:global] + %w[format inventoryfile boltdir configfile], + banner: INVENTORY_HELP } when 'plan' case action when 'convert' { flags: OPTIONS[:global] + OPTIONS[:global_config_setters], banner: PLAN_CONVERT_HELP } @@ -108,10 +111,11 @@ bolt puppetfile install Install modules from a Puppetfile into a Boltdir bolt puppetfile show-modules List modules available to Bolt bolt secret createkeys Create new encryption keys bolt secret encrypt <plaintext> Encrypt a value bolt secret decrypt <encrypted> Decrypt a value + bolt inventory show Show the list of targets an action would run on Run `bolt <subcommand> --help` to view specific examples. Available options are: HELP @@ -261,13 +265,23 @@ Available actions are: createkeys Create new encryption keys encrypt Encrypt a value decrypt Decrypt a value + Available options are: SECRET_HELP + INVENTORY_HELP = <<~INVENTORY_HELP + Usage: bolt inventory <action> + + Available actions are: + show Show the list of targets an action would run on + + Available options are: + INVENTORY_HELP + def initialize(options) super() @options = options @@ -364,10 +378,11 @@ define('--compile-concurrency CONCURRENCY', Integer, 'Maximum number of simultaneous manifest block compiles (default: number of cores)') do |concurrency| @options[:'compile-concurrency'] = concurrency end define('-m', '--modulepath MODULES', - "List of directories containing modules, separated by '#{File::PATH_SEPARATOR}'") do |modulepath| + "List of directories containing modules, separated by '#{File::PATH_SEPARATOR}'", + 'Directories are case-sensitive') do |modulepath| # When specified from the CLI, modulepath entries are relative to pwd @options[:modulepath] = modulepath.split(File::PATH_SEPARATOR).map do |moduledir| File.expand_path(moduledir) end end