lib/autoproj/cli/doc.rb in autoproj-2.0.0 vs lib/autoproj/cli/doc.rb in autoproj-2.0.1

- old
+ new

@@ -1,18 +1,13 @@ require 'autoproj/cli/inspection_tool' module Autoproj module CLI class Doc < InspectionTool - def run(selected_packages, options = Hash.new) + def run(user_selection, deps: true) initialize_and_load - options = Kernel.validate_options options, - with_deps: true - - selected_packages, _ = - normalize_command_line_package_selection(selected_packages) - package_names, _ = resolve_selection(selected_packages, recursive: options[:with_deps]) - + packages, _ = + finalize_setup(user_selection, recursive: deps) packages.each do |pkg| ws.manifest.find_autobuild_package(pkg).disable_phases('import', 'prepare', 'install') end Autobuild.apply(packages, "autoproj-doc", ['doc']) end