From: "mame (Yusuke Endoh)" Date: 2012-07-23T22:17:44+09:00 Subject: [ruby-core:46649] [ruby-trunk - Feature #5011][Rejected] Add Perl 6-like main method definition support: accept command-line arguments as method arguments Issue #5011 has been updated by mame (Yusuke Endoh). Status changed from Assigned to Rejected Rodrigo Rosenfeld Rosas, Sorry but this proposal was rejected at the developer meeting (7/21). Matz said that it was not a bad idea to improve optparse, but that this proposal was not in the right direction. -- Yusuke Endoh ---------------------------------------- Feature #5011: Add Perl 6-like main method definition support: accept command-line arguments as method arguments https://bugs.ruby-lang.org/issues/5011#change-28310 Author: rosenfeld (Rodrigo Rosenfeld Rosas) Status: Rejected Priority: Low Assignee: matz (Yukihiro Matsumoto) Category: Target version: 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://bugs.ruby-lang.org/