Project

General

Profile

Actions

Feature #8460

open

PATCH: optparse: add `keep_unknown` option

Added by felipec (Felipe Contreras) over 11 years ago. Updated over 1 year ago.

Status:
Assigned
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-Add-keep_unknown-option.patch (2.79 KB) 0001-Add-keep_unknown-option.patch Add `keep_unknown` option felipec (Felipe Contreras), 04/02/2023 06:50 AM
0002-Move-dash-dash-handling-to-a-case.patch (1.28 KB) 0002-Move-dash-dash-handling-to-a-case.patch Move dash dash handling to a case felipec (Felipe Contreras), 04/02/2023 06:50 AM
0003-Properly-keep-dash-dash.patch (1.1 KB) 0003-Properly-keep-dash-dash.patch Properly keep dash dash felipec (Felipe Contreras), 04/02/2023 06:50 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0