2015-05-15 15:39:43 -07:00
|
|
|
#include <stdio.h>
|
2015-05-19 00:01:18 -07:00
|
|
|
#include <string.h>
|
2015-05-16 21:55:29 -07:00
|
|
|
#include <HECLDatabase.hpp>
|
|
|
|
|
2015-05-19 00:01:18 -07:00
|
|
|
#define MAIN_CPP
|
2015-05-19 14:01:32 -07:00
|
|
|
#include "CToolBase.hpp"
|
2015-05-19 00:01:18 -07:00
|
|
|
#include "CToolInit.hpp"
|
|
|
|
#include "CToolAdd.hpp"
|
|
|
|
#include "CToolGroup.hpp"
|
|
|
|
#include "CToolCook.hpp"
|
|
|
|
#include "CToolClean.hpp"
|
|
|
|
#include "CToolPackage.hpp"
|
|
|
|
#include "CToolHelp.hpp"
|
2015-05-15 15:39:43 -07:00
|
|
|
|
2015-05-19 00:01:18 -07:00
|
|
|
void printHelp(const char* pname)
|
2015-05-15 15:39:43 -07:00
|
|
|
{
|
2015-05-19 00:01:18 -07:00
|
|
|
printf("Usage: %s init|add|group|cook|clean|package|help\n", pname);
|
|
|
|
}
|
|
|
|
|
|
|
|
int main(int argc, const char** argv)
|
|
|
|
{
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
|
|
|
printHelp(argv[0]);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else if (argc == 0)
|
|
|
|
{
|
|
|
|
printHelp("hecl");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!strcasecmp(argv[1], "init"))
|
|
|
|
|
|
|
|
|
2015-05-15 15:39:43 -07:00
|
|
|
return 0;
|
|
|
|
}
|