aboutsummaryrefslogtreecommitdiff
path: root/src/dmtool.cc
diff options
context:
space:
mode:
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 3c5d3a1..f4fe19c 100644
--- a/src/dmtool.cc
+++ b/src/dmtool.cc
@@ -11,6 +11,7 @@ const std::map<std::string, std::vector<int>> nargs({
{"attacks", {1}},
{"damage", {2, 3}},
{"heal", {2}},
+ {"spellcasting", {2, 3, 4}},
});
void checkArgs(std::string cmd, std::vector<std::string> args) {
@@ -69,6 +70,7 @@ int main(int argc, char *argv[]) {
else if(cmd == "add") std::cout << cmd::add(args);
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 == "help") std::cout << cmd::usage(exename);
else std::cout << cmd::list(argsOrig);
} catch(std::exception& e) {