Rake allows to document succinctly what tasks are doing. But what if a task is intented to provide more information on its usage? Here is a naive attempt to do it with a multiline desc
desc <<~lid
Do nothing, even when arguments are provided.
Usage:
rake 'users:idle["something", "anotherthing"]'
rake 'users:idle[, "anotherthing"]' # something is ignored anyway
rake users:idle # do nothing tersely
lid
task :idle, [:option, :token] => :environment do |task, fad|
# Really, do nothing!
end
But running rake --tasks will only reveal the first line. Is there a way to access the rest of the desc through some rake command?