mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-07 17:26:55 +08:00
Fix to execute all scripts passed on commandline
This commit is contained in:
parent
44d37e5c79
commit
a304254270
@ -361,7 +361,9 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
}
|
||||
else {
|
||||
Boxed_Value val = evaluate_string(lexer, parser, ss, load_file(argv[1]), argv[1]);
|
||||
for (int i = 1; i < argc; ++i) {
|
||||
Boxed_Value val = evaluate_string(lexer, parser, ss, load_file(argv[i]), argv[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user