diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-08-15 09:31:59 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-08-15 09:31:59 +0900 |
| commit | 7bf4142c4210956da179783aa6d6377b9ab7043f (patch) | |
| tree | cc58b8ca2b7a17eda2573e0a6bd324510867c8a7 /tools | |
| parent | 5f11890d0488319ddbe8978d33acad52f2410ced (diff) | |
| download | mruby-7bf4142c4210956da179783aa6d6377b9ab7043f.tar.gz mruby-7bf4142c4210956da179783aa6d6377b9ab7043f.zip | |
mruby should read from stdin if no argument given as cruby does
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/mruby/mruby.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/mruby/mruby.c b/tools/mruby/mruby.c index 8336089ee..af6680e8c 100644 --- a/tools/mruby/mruby.c +++ b/tools/mruby/mruby.c @@ -60,7 +60,6 @@ parse_args(mrb_state *mrb, int argc, char **argv, struct _args *args) memset(args, 0, sizeof(*args)); - if (argc == 1) return -2; for (argc--,argv++; argc > 0; argc--,argv++) { char *item; if (argv[0][0] != '-') break; |
