From 51f55f5c6d54fa86fdaae805b55ca88aa9607c37 Mon Sep 17 00:00:00 2001 From: Furkan Sahin Date: Tue, 26 Dec 2023 09:02:08 -0600 Subject: [PATCH] fix: record that module `upgrade` requires at least 1 arg (#1207) Fixes https://github.com/nvim-neorg/neorg/issues/1206 --- lua/neorg/modules/core/upgrade/module.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/neorg/modules/core/upgrade/module.lua b/lua/neorg/modules/core/upgrade/module.lua index 8cb172de7..1627f5ace 100644 --- a/lua/neorg/modules/core/upgrade/module.lua +++ b/lua/neorg/modules/core/upgrade/module.lua @@ -45,6 +45,8 @@ module.load = function() modules.await("core.neorgcmd", function(neorgcmd) neorgcmd.add_commands_from_table({ upgrade = { + min_args = 1, + max_args = 1, subcommands = { ["current-file"] = { name = "core.upgrade.current-file",