require 'main' puts Main.version Main { argument 'x' do error :before do puts 'this fires *before* normal error handling using #instance_eval...' end error do puts 'this fires *instead of* normal error handling using #instance_eval...' end error :after do puts 'this fires *after* normal error handling using #instance_eval...' end end run(){ p param['x'].given? } }