def usage
txt = [
"\n Usage:",
"autumn <start|stop|restart|status|create|console> PROJECT [options]\n",
"Commands:\n",
" start - Starts an instance of this application.\n",
" stop - Stops a running instance of this application.\n",
" restart - Stops running instance of this application, then starts it back up. Pidfile",
" (if supplied) is used for both stop and start.\n",
" status - Gives status of a running autumn instance\n",
" create - Creates a new prototype Autumn application in a directory named PROJECT in",
" the current directory. autumn create foo would make ./foo containing an",
" application prototype.\n",
" console - Starts an irb console with autumn (and irb completion) loaded.",
" ARGV is passed on to IRB.\n\n"
].join("\n\t")
txt << "* All commands take PROJECT as the directory the autumn bot lives in.\n\n"
txt << start_options.to_s << "\n"
txt << create_options.to_s << "\n"
end