From 8705c5ffebf8fdf1d02f667f0f003188ca10c26c Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 24 Mar 2020 14:45:41 +0100 Subject: [PATCH] js: Make the -l command-line argument actually work --- Userland/js.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/js.cpp b/Userland/js.cpp index 66e8316947..defc51d3b8 100644 --- a/Userland/js.cpp +++ b/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);