Exception: Aspera::Cli::HelpRequest

Inherits:
StandardError
  • Object
show all
Defined in:
lib/aspera/cli/error.rb

Overview

Raised by dispatch_from_registry when --help is encountered mid-dispatch. Carries the plugin instance (with #help_path set) so the runner can display context-sensitive help without unwinding through a full rescue chain.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(plugin) ⇒ HelpRequest

Returns a new instance of HelpRequest.



15
16
17
18
# File 'lib/aspera/cli/error.rb', line 15

def initialize(plugin)
  super('help requested')
  @plugin = plugin
end

Instance Attribute Details

#pluginPlugins::Base (readonly)

Returns:



13
14
15
# File 'lib/aspera/cli/error.rb', line 13

def plugin
  @plugin
end