aboutsummaryrefslogtreecommitdiff
path: root/src/dmtool.cc
diff options
context:
space:
mode:
authorYour Name <you@example.com>2023-11-21 16:26:34 -0500
committerYour Name <you@example.com>2023-11-21 16:26:34 -0500
commit0d32e0d3342ef2455014c8e1164977c816763317 (patch)
tree0e0a445332accf0eda8f23fe586f614844bee463 /src/dmtool.cc
parent5678a600b7d1ec4e79724258dfefe45a49258ea3 (diff)
downloaddmtool-0d32e0d3342ef2455014c8e1164977c816763317.tar.gz
dmtool-0d32e0d3342ef2455014c8e1164977c816763317.tar.bz2
dmtool-0d32e0d3342ef2455014c8e1164977c816763317.zip
Added rudimentary item creation
Diffstat (limited to 'src/dmtool.cc')
-rw-r--r--src/dmtool.cc2
1 files changed, 2 insertions, 0 deletions
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<std::string, std::vector<int>> nargs({
{"damage", {2, 3}},
{"heal", {2}},
{"spellcasting", {2, 3, 4}},
+ {"create", {3}}
});
void checkArgs(std::string cmd, std::vector<std::string> 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);