Class: Laser::Cutter::CLI::Help

Inherits:
Command
  • Object
show all
Defined in:
lib/laser/cutter/cli/help.rb

Overview

The help command: help for the program, or for one command.

Constant Summary

Constants inherited from Command

Command::BAR_WIDTH

Instance Method Summary collapse

Methods inherited from Command

finalize!, inherited, #progress, #ui

Instance Method Details

#call(command: nil) ⇒ void

This method returns an undefined value.

Asks dry-cli for the help it prints on --help, which exits by itself.

Parameters:

  • command (String, nil) (defaults to: nil) —

    the command to explain; nil for the program



18
19
20
# File 'lib/laser/cutter/cli/help.rb', line 18

def call(command: nil, **)
  Dry::CLI.new(CLI).call(arguments: [command, '--help'].compact, out: out, err: err)
end