Method: Nanoc::CLI.run

Defined in:
lib/nanoc/cli.rb

.run(args) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Invokes the Nanoc command-line tool with the given arguments.

Parameters:

  • args (Array<String>)

    An array of command-line arguments



86
87
88
89
90
91
# File 'lib/nanoc/cli.rb', line 86

def self.run(args)
  Nanoc::CLI::ErrorHandler.handle_while do
    setup
    root_command.run(args)
  end
end