diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-11-27 22:41:36 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-11-27 22:41:36 +0900 |
| commit | 17ec8852700cf84be76a95074ac9a32205b2e071 (patch) | |
| tree | 2dadf39864a06751efd5b5320927ee83f86d77f9 /mrbgems/mruby-bin-mruby/bintest/mruby.rb | |
| parent | 190649e591de2bc0b935a22066fc9e79e8ae8f9b (diff) | |
| parent | f4b528e07a069b9acbbcb61cced2b04115e61db7 (diff) | |
| download | mruby-17ec8852700cf84be76a95074ac9a32205b2e071.tar.gz mruby-17ec8852700cf84be76a95074ac9a32205b2e071.zip | |
Merge pull request #4843 from shuujii/support-end-of-options-to-mruby-command
Support `--` (end of options) to `mruby` command
Diffstat (limited to 'mrbgems/mruby-bin-mruby/bintest/mruby.rb')
| -rw-r--r-- | mrbgems/mruby-bin-mruby/bintest/mruby.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mrbgems/mruby-bin-mruby/bintest/mruby.rb b/mrbgems/mruby-bin-mruby/bintest/mruby.rb index df0e991f7..b234b6c6f 100644 --- a/mrbgems/mruby-bin-mruby/bintest/mruby.rb +++ b/mrbgems/mruby-bin-mruby/bintest/mruby.rb @@ -128,6 +128,10 @@ assert('mruby -r option (file not found)') do assert_mruby("", /\A.*: Cannot open library file: .*\n\z/, false, %w[-r _no_exists_]) end +assert('mruby --') do + assert_mruby(%{["-x", "1"]\n}, "", true, %w[-e p(ARGV) -- -x 1]) +end + assert('mruby invalid short option') do assert_mruby("", /\A.*: invalid option -1 .*\n\z/, false, %w[-1]) end |
