lib/octofacts_updater/cli.rb
# Validate command line options. Kick out invalid combinations of options immediately.
Validate command line options. Kick out invalid combinations of options immediately.
Validate command line options . Kick out invalid combinations of options immediately .
def validate_cli
      if opts[:path] && !File.directory?(opts[:path])
        raise Errno::ENOENT, "An existing directory must be specified with -p/--path"
      end
    end
def validate_cli if opts [ :path ] && ! File . directory? ( opts [ :path ] ) raise Errno :: ENOENT , "An existing directory must be specified with -p/--path" end end
Validate command line options.
Validate command line options .