A typo fix.

Parameter list reorder
This commit is contained in:
Sanel Zukan 2008-07-14 18:04:30 +00:00
parent 7bf5456c8c
commit 3cf7bd04c7

View File

@ -97,7 +97,7 @@ int main(int argc, char** argv) {
return 1;
}
i++;
} else if(CHECK_ARGV(a, "-e", "--expr")) {
} else if(CHECK_ARGV(a, "-e", "--eval")) {
expr = next_param(i, argv, argc);
if(!expr) {
puts("Missing expression");
@ -114,9 +114,9 @@ int main(int argc, char** argv) {
}
}
if(expr)
if(expr) {
do_file_or_expr(NULL, expr, l);
else if(filename) {
} else if(filename) {
FILE* f = fopen(filename, "r");
if(!f) {
printf("Unable to open '%s'!\n", filename);