X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Console%2FNode.cc;h=4886b77b8fff48ba3147323b1feb7ca03eef50e5;hb=e879290346fe5242d7df2d70ee552d264081492f;hp=5e1e42786e51370b34db4a9a730d41dfc98305ba;hpb=9a782796586d1f6708e1baab64f2140c3c7972e8;p=senf.git diff --git a/Console/Node.cc b/Console/Node.cc index 5e1e427..4886b77 100644 --- a/Console/Node.cc +++ b/Console/Node.cc @@ -117,6 +117,15 @@ prefix_ void senf::console::DirectoryNode::v_help(std::ostream & output) } /////////////////////////////////////////////////////////////////////////// +// senf::console::SyntaxErrorException + +prefix_ char const * senf::console::SyntaxErrorException::what() + const throw() +{ + return message().empty() ? "syntax error" : message().c_str(); +} + +/////////////////////////////////////////////////////////////////////////// // senf::console::SimpleCommandNode prefix_ void senf::console::SimpleCommandNode::v_help(std::ostream & output) @@ -125,6 +134,13 @@ prefix_ void senf::console::SimpleCommandNode::v_help(std::ostream & output) output << doc_ << "\n"; } +prefix_ void senf::console::SimpleCommandNode::v_execute(std::ostream & output, + ParseCommandInfo const & command) + const +{ + fn_(output, command); +} + ///////////////////////////////cc.e//////////////////////////////////////// #undef prefix_ //#include "Node.mpp"