From 832798a3a5712583f9df94b23d9f18289629ecb5 Mon Sep 17 00:00:00 2001 From: Atirut Wattanamongkol Date: Fri, 16 Apr 2021 16:56:05 +0700 Subject: [PATCH] Make LuaComp actually use argparse instead of trying to call a nil function add_complete() doesn't seem to exist in argparse anymore so I commented it out --- src/application.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/application.lua b/src/application.lua index 5ec863c..4e843ec 100644 --- a/src/application.lua +++ b/src/application.lua @@ -15,6 +15,7 @@ end --#include "src/directive_provider.lua" --#include "src/cfg/minifier_providers.lua" +local argparse = require("argparse") local parser = argparse(arg[0], "LuaComp v"..LUACOMP_VERSION.."\nA preprocessor+postprocessor written in Lua.") parser:argument("input", "Input file (- for STDIN)") parser:option("-O --output", "Output file. (- for STDOUT)", "-") @@ -46,7 +47,7 @@ parser:flag("-v --version", "Prints the version and exits"):action(function() print(LUACOMP_VERSION) os.exit(0) end) -parser:add_complete() +-- parser:add_complete() local args = parser:parse() local file = args.input _sv("LUACOMP_MINIFIER", args.minifier)