mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby should read from stdin if no argument given as cruby does
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user