[ruby-core:62759] [ruby-trunk - Feature #9864] [Closed] Rename 'optparse' to 'optionparser', or the main class OptionParser to OptParse

From: nobu@...
Date: 2014-05-26 03:25:46 UTC
List: ruby-core #62759
Issue #9864 has been updated by Nobuyoshi Nakada.

Status changed from Open to Closed
% Done changed from 0 to 100

Applied in changeset r46126.

----------
lib/optionparser.rb

* lib/optionparser.rb, lib/optparse.rb (OptParse): aliases.
  [ruby-core:62751] [Feature #9864]

----------------------------------------
Feature #9864: Rename 'optparse' to 'optionparser', or the main class OptionParser to OptParse
https://bugs.ruby-lang.org/issues/9864#change-46875

* Author: Robert A. Heiler
* Status: Closed
* Priority: Low
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
Hello.

I don't like the inconsistency in the naming of optparse and the class that
we are supposed to use itself.

I think it would be better to do:

  require 'optparse'
  OptParse.new

or

  require 'optionparser'
  OptionParser.new




-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next