浏览代码

js: Make the -l command-line argument actually work

Andreas Kling 5 年之前
父节点
当前提交
8705c5ffeb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Userland/js.cpp

+ 1 - 1
Userland/js.cpp

@@ -47,7 +47,7 @@ int main(int argc, char** argv)
 
     Core::ArgsParser args_parser;
     args_parser.add_option(dump_ast, "Dump the AST", "ast-dump", 'A');
-    args_parser.add_option(dump_ast, "Print last result", "print-last-result", 'l');
+    args_parser.add_option(print_last_result, "Print last result", "print-last-result", 'l');
     args_parser.add_option(gc_on_every_allocation, "GC on every allocation", "gc-on-every-allocation", 'g');
     args_parser.add_positional_argument(script_path, "Path to script file", "script");
     args_parser.parse(argc, argv);