From d0ebf4c354ab7eb984809b09049da5fe3f1421c1 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 14 Apr 2014 01:16:54 -0400 Subject: [PATCH] Context - Now distinguishes between readcmd and writecmd entities. --- src/Context.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Context.cpp b/src/Context.cpp index b8d0c7766..c23e775dc 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -163,8 +163,10 @@ int Context::initialize (int argc, const char** argv) { if (cmd->first[0] == '_') a3t.entity ("helper", cmd->first); + else if (cmd->second->read_only ()) + a3t.entity ("readcmd", cmd->first); else - a3t.entity ("command", cmd->first); + a3t.entity ("writecmd", cmd->first); // TODO Entities: Reports. // TODO Entities: Read-only commands.