From 0d32e0d3342ef2455014c8e1164977c816763317 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 21 Nov 2023 16:26:34 -0500 Subject: Added rudimentary item creation --- src/dmtool.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/dmtool.cc') diff --git a/src/dmtool.cc b/src/dmtool.cc index 3aec8b2..b94540c 100644 --- a/src/dmtool.cc +++ b/src/dmtool.cc @@ -13,6 +13,7 @@ const std::map> nargs({ {"damage", {2, 3}}, {"heal", {2}}, {"spellcasting", {2, 3, 4}}, + {"create", {3}} }); void checkArgs(std::string cmd, std::vector args) { @@ -87,6 +88,7 @@ int main(int argc, char *argv[]) { else if(cmd == "del") std::cout << cmd::del(args); else if(cmd == "edit") std::cout << cmd::edit(args); else if(cmd == "spellcasting") std::cout << cmd::spellcasting(args); + else if(cmd == "create") std::cout << cmd::create(args); else if(cmd == "git") std::cout << cmd::git(argsWithFlags); else if(cmd == "help") std::cout << cmd::usage(exename); else std::cout << cmd::list(argsOrig); -- cgit v1.2.3