#208 new
bahuvrihi

Help registry

Reported by bahuvrihi | May 17th, 2009 @ 11:25 AM

Command line apps like tap could really benefit from a help registry so that certain errors can be supplemented with user help.

begin
  # ...
rescue
  raise if $DEBUG
  puts $!.message

  # replace this with a help registry
  if $!.message == "no nodes specified" && !ARGV.empty?
    puts "(did you mean 'tap run -- #{ARGV.join(' ')}'?)"
  end
  exit(1)
end

exit(0)

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

A framework for making configurable, file-based tasks and workflows.

People watching this ticket

Pages