[#104004] [Ruby master Feature#17883] Load bundler/setup earlier to make `bundle exec ruby -r` respect Gemfile — mame@...
Issue #17883 has been reported by mame (Yusuke Endoh).
21 messages
2021/05/24
[ruby-core:104073] [Ruby master Feature#8460] PATCH: optparse: add keep_unknown option
From:
felipe.contreras@...
Date:
2021-05-27 22:07:58 UTC
List:
ruby-core #104073
Issue #8460 has been updated by felipec (Felipe Contreras). File 0003-optparse-properly-keep-dash-dash.patch added File 0002-optparse-move-dash-dash-handling-to-a-case.patch added File 0001-optparse-add-keep_unknown-option.patch added Nobody had requested any tests. It would have been much easier if 7 years ago you had written the two lines of code required to test this. Anyway, I've rebased my changes on top of the latest master, and added some tests. ---------------------------------------- Feature #8460: PATCH: optparse: add keep_unknown option https://bugs.ruby-lang.org/issues/8460#change-92247 * Author: felipec (Felipe Contreras) * Status: Assigned * Priority: Normal * Assignee: nobu (Nobuyoshi Nakada) ---------------------------------------- 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 (2.98 KB) 0002-optparse-move-dash-dash-handling-to-a-case.patch (1.42 KB) 0003-optparse-properly-keep-dash-dash.patch (1.23 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>