metaforce/hecl/driver/CToolClean.hpp

71 lines
2.2 KiB
C++
Raw Normal View History

2015-05-19 21:01:32 +00:00
#ifndef CTOOL_CLEAN
#define CTOOL_CLEAN
#include "CToolBase.hpp"
2015-05-26 04:42:20 +00:00
#include <stdio.h>
2015-05-20 05:22:32 +00:00
class CToolClean final : public CToolBase
{
public:
2015-05-20 05:22:32 +00:00
CToolClean(const SToolPassInfo& info)
: CToolBase(info)
{
}
2015-05-20 05:22:32 +00:00
~CToolClean()
{
}
2015-05-20 05:22:32 +00:00
2015-05-26 04:42:20 +00:00
static void Help(CHelpOutput& help)
2015-05-20 05:22:32 +00:00
{
2015-05-26 04:42:20 +00:00
help.secHead("NAME");
help.beginWrap();
help.wrap("hecl-clean - Delete cached cooked objects referenced via working files\n");
help.endWrap();
help.secHead("SYNOPSIS");
help.beginWrap();
help.wrap("hecl clean [-ri] [<pathspec>...]\n");
help.endWrap();
help.secHead("DESCRIPTION");
help.beginWrap();
help.wrap("This command performs an immediate deletion of cooked objects cached "
"within the project database. It may operate on a subset of objects or the "
"entire project.\n");
help.endWrap();
help.secHead("OPTIONS");
help.optionHead("<pathspec>...", "clean path(s)");
help.beginWrap();
help.wrap("When one or more paths are specified in the command, the clean process will "
"restrict object deletion to only the working file(s) specified. If ");
help.wrapBold("-r");
help.wrap(" is also specifed, directories may be provided as well. If no path(s) specified, "
"the entire project is cleaned.\n");
help.endWrap();
help.optionHead("-r", "recursion");
help.beginWrap();
help.wrap("Enables recursive file-matching for cleaning entire directories of working files.\n");
help.endWrap();
help.optionHead("-i", "follow implicit links");
help.beginWrap();
help.wrap("Enables implicit object traversal and cleaning. This is only useful if one or more paths "
"are specified. For objects supporting implicit-gathering, this will query those "
"objects for their current implicit links and ensure the linked-objects are cleaned "
"as well.\n");
help.endWrap();
2015-05-20 05:22:32 +00:00
}
std::string toolName() const {return "clean";}
int run()
{
return 0;
}
};
2015-05-19 21:01:32 +00:00
#endif // CTOOL_CLEAN