lib/bolt/bolt_option_parser.rb in bolt-1.6.0 vs lib/bolt/bolt_option_parser.rb in bolt-1.7.0
- old
+ new
@@ -212,11 +212,11 @@
end
define('--compile-concurrency CONCURRENCY', Integer,
'Maximum number of simultaneous manifest block compiles (default: number of cores)') do |concurrency|
@options[:'compile-concurrency'] = concurrency
end
- define('--modulepath MODULES',
+ define('-m', '--modulepath MODULES',
"List of directories containing modules, separated by '#{File::PATH_SEPARATOR}'") 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
@@ -227,11 +227,11 @@
end
define('--configfile FILEPATH',
'Specify where to load config from (default: ~/.puppetlabs/bolt/bolt.yaml)') do |path|
@options[:configfile] = path
end
- define('--inventoryfile FILEPATH',
+ define('-i', '--inventoryfile FILEPATH',
'Specify where to load inventory from (default: ~/.puppetlabs/bolt/inventory.yaml)') do |path|
if ENV.include?(Bolt::Inventory::ENVIRONMENT_VAR)
raise Bolt::CLIError, "Cannot pass inventory file when #{Bolt::Inventory::ENVIRONMENT_VAR} is set"
end
@options[:inventoryfile] = File.expand_path(path)
@@ -260,10 +260,10 @@
@options[:color] = color
end
define('-h', '--help', 'Display help') do |_|
@options[:help] = true
end
- define('--verbose', 'Display verbose logging') do |_|
+ define('-v', '--verbose', 'Display verbose logging') do |_|
@options[:verbose] = true
end
define('--debug', 'Display debug logging') do |_|
@options[:debug] = true
end