class Hello
def main
print 'Hello, world.'
Furthermore, `main` can no longer take arguments or return a value. Use `CobraCore.commandLineArgs` and `CobraCore.exit(code)` instead.
Finally, you can use the new -main: command line option to disambiguate when there is more than one `main` method. See cobra -h
This is in the repository. Any questions or problems, let me know.