Is it possible to call groovy script method from command line without using manual mapping args[]->method_to_call?
For example if I have groovy script 'MyGroovyScript.groovy' like:
def foo() {
}
def bar() {
}
And I want to call foo() method from command line like:
groovy MyGroovyScript.groovy foo