Project

General

Profile

Feature #8460

PATCH: optparse: add keep_unknown option

Added by felipec (Felipe Contreras) almost 7 years ago. Updated over 6 years ago.

Status:
Assigned
Priority:
Normal
Target version:
-
[ruby-core:55195]

Description

Currently people have to do very convoluted tricks, essentially making
it impossible for optparse to keep unknown options.

The safest and cleanest way is to do it in the code itself.

[1] http://www.ruby-forum.com/topic/88081
[2] http://stackoverflow.com/questions/3642331/can-optparse-skip-unknown-options-to-be-processed-later-in-a-ruby-program


Files

0001-optparse-add-keep_unknown-option.patch (2.1 KB) 0001-optparse-add-keep_unknown-option.patch felipec (Felipe Contreras), 05/29/2013 08:39 PM

Also available in: Atom PDF