lib/ohai/application.rb in ohai-14.3.0 vs lib/ohai/application.rb in ohai-14.4.0
- old
+ new
@@ -32,11 +32,14 @@
proc: lambda { |path| File.expand_path(path, Dir.pwd) }
option :directory,
short: "-d DIRECTORY",
long: "--directory DIRECTORY",
- description: "A directory to add to the Ohai plugin search path",
- proc: lambda { |path| Ohai::Config.platform_specific_path(path) }
+ description: "A directory to add to the Ohai plugin search path. If passing multiple directories use this option more than once.",
+ proc: lambda { |path, path_array|
+ (path_array ||= []) << Ohai::Config.platform_specific_path(path)
+ path_array
+ }
option :log_level,
short: "-l LEVEL",
long: "--log_level LEVEL",
description: "Set the log level (debug, info, warn, error, fatal)",