diff options
Diffstat (limited to 'commands.cpp')
-rw-r--r-- | commands.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/commands.cpp b/commands.cpp index 3000f31..84c1e5f 100644 --- a/commands.cpp +++ b/commands.cpp @@ -78,6 +78,9 @@ Commands::Commands(boost::asio::io_service& io_service_, std::vector<std::string handlers["update"] = &Commands::update; } +/** Invokes the command and returns its results. + * Throws CommandException if the command isn't found. + */ std::vector<std::string> Commands::operator()() { assert(args.size()); Handler h = handlers[args[0]]; |