Issue #5011 has been reported by Rodrigo Rosenfeld Rosas.

----------------------------------------
Feature #5011: Add Perl 6-like main method definition support: accept command-line arguments as method arguments
http://redmine.ruby-lang.org/issues/5011

Author: Rodrigo Rosenfeld Rosas
Status: Open
Priority: Low
Assignee: Yukihiro Matsumoto
Category: 
Target version: 2.0


Take a look at this:

http://perlgeek.de/en/article/5-to-6#post_14

I'm not really sure how this would look like in Ruby, but I like the idea of defining a main method could extract their params from command-line params.

This would also be an alternative for issue #4824:

http://redmine.ruby-lang.org/projects/ruby-19/issues/4824


-- 
http://redmine.ruby-lang.org