after_options_hook.rb

lib/rodish/plugins/after_options_hook.rb
Last Update: 2025-03-13 17:01:44 -0700

The after_options_hook plugin supports an after_options configuration method, specifying a block to execute in context after parsing options, before executing the command or any subcommands. It is passed the remaining argv and already parsed options:

after_options do |argv, options|
  # ...
end