A quick follow-up. I could easily make task building something like this:
task :name do
when { projectfile? }
help <<-end
Help information.
end
run do |x|
# do the task
end
end
That would probably be the most proper course. But if Rake
compatibility (or nearly so at least) is though vitially important
than could do something like this:
desc "This is a description"
task :name do |x|
# do the task
end
cont do
help <<-end
This is help text.
end
when do
projectfile?
end
end
Not sure what to call "cont".
T.