Added -f option to the shell sample for compatibility with the other

engines.



git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@229 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
christian.plesner.hansen@gmail.com 2008-09-09 08:35:40 +00:00
parent 4316e6c2d3
commit a81dca8597

View File

@ -65,6 +65,10 @@ int main(int argc, char* argv[]) {
const char* str = argv[i];
if (strcmp(str, "--shell") == 0) {
run_shell = true;
} else if (strcmp(str, "-f") == 0) {
// Ignore any -f flags for compatibility with the other stand-
// alone JavaScript engines.
continue;
} else if (strncmp(str, "--", 2) == 0) {
printf("Warning: unknown flag %s.\n", str);
} else {