rspec/rspec-core — Issue #497: Standardize CLI options on dashes or underscores
Author: dchelimsky
Created: 2011-11-04 13:27:19+00:00
State: open

CLI options are inconsistent in format e.g. --fail-fast (with dashes) and --line_number (with underscores). Ideally each option would be listed with dashes, but support both dashes and underscores, but that probably requires hacking into optparse. Short of that, we should standardize on dashes or underscores and deprecate the non-standard ones.

Argument for dashes - they tend to be more standard and are slightly easier to type.

Argument for underscores - they align with the `RSpec.configure` options, which use underscores because they are method names.

Comments welcome.