diff options
author | deva <deva> | 2009-07-17 13:02:45 +0000 |
---|---|---|
committer | deva <deva> | 2009-07-17 13:02:45 +0000 |
commit | 177cea995d02fd14dd82fa010957ebfbc1c5e760 (patch) | |
tree | 62703ddc11b83a054e8068c0e9c79ce1951959a6 /server/src/macrotool.cc | |
parent | a619ccc300a00947207600e11fac848b7d37b26b (diff) |
More work on the macrotool. Now fieldnames can be added and deleted, and a filehandler is able to add new macros assuring no conflicts in macro names/version/filenames happen. Error messages in MacroParser has been made more elaborate.
Diffstat (limited to 'server/src/macrotool.cc')
-rw-r--r-- | server/src/macrotool.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/server/src/macrotool.cc b/server/src/macrotool.cc index 44beeef..11c634e 100644 --- a/server/src/macrotool.cc +++ b/server/src/macrotool.cc @@ -41,6 +41,7 @@ #include "macrotool_dump.h" #include "macrotool_fieldnames.h" +#include "macrotool_filehandler.h" static const char version_str[] = "Pracro server v" VERSION "\n" @@ -65,9 +66,10 @@ static const char usage_str[] = " -D, --debug ddd Enable debug messages on 'ddd'; see documentation for details\n" "\n" "Commands:\n" -" dump entity Dumps 'entity' to screen ('dump help' to see list of entities).\n" -" fieldnames entity Add/delete/update entries in the fieldnames database\n" -" ('fieldnames help' to see list of entities).\n" +" dump entity Dumps 'entity' to screen ('dump help' to see list of entities).\n" +" fieldnames entity Add/delete/update entries in the fieldnames database\n" +" ('fieldnames help' to see list of entities).\n" +" filehandler entity Handle macro files ('macrohandler help' to see list of entities).\n" ; ConfigurationParser *configparser = NULL; @@ -152,6 +154,7 @@ int main(int argc, char *argv[]) if(command == "dump") macrotool_dump(params); if(command == "fieldnames") macrotool_fieldnames(params); + if(command == "filehandler") macrotool_filehandler(params); // Clean up if(configfile) free(configfile); |