diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-11-22 22:37:29 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-11-22 22:37:29 +0900 |
| commit | 17532874a89157e7d48f4ef23da6f780dfb2cbe7 (patch) | |
| tree | 5db7c5acbae21a38106e7308fbcf942a411bd05a | |
| parent | 76b036a6277efc4860f855707a1c18f96c066d43 (diff) | |
| parent | a67b88e2234a436162ef481c5e7b1da7af844936 (diff) | |
| download | mruby-17532874a89157e7d48f4ef23da6f780dfb2cbe7.tar.gz mruby-17532874a89157e7d48f4ef23da6f780dfb2cbe7.zip | |
Merge pull request #5174 from dearblue/doc
Add brief explanation about `bin/mruby`; ref #5157 [ci skip]
| -rw-r--r-- | doc/mruby3.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/mruby3.md b/doc/mruby3.md index 1785ae589..bc0a74b00 100644 --- a/doc/mruby3.md +++ b/doc/mruby3.md @@ -83,6 +83,21 @@ changed from previous versions. Call `malloc_trim(0)` from mrb_full_gc() if this macro is defined. If you are using glibc malloc, this macro could reduce memory consumption. +# Command Line Program + +## `bin/mruby` (by mrbgems/mruby-bin-mruby) + +The mruby3 now automatically detects `*.mrb` files without the `-b` +switch. Therefore, it can be mixed with the `*.rb` file in combination +with the `-r` switch and specified at the same time. +Here's an example that works fine: + +```console +$ bin/mruby app.mrb +$ bin/mruby -r lib1.mrb -r lib2.rb app.rb +$ bin/mruby -r lib1.rb -r lib2.rb < app.mrb +``` + # Internal Changes ## New Instructions |
