2022-04-22 23:04:48 +00:00
|
|
|
#include <base/logger.h>
|
2017-05-21 23:07:13 +00:00
|
|
|
#include <engine/shared/uuid_manager.h>
|
2021-11-21 17:16:14 +00:00
|
|
|
int main(int argc, const char **argv)
|
2017-05-21 23:07:13 +00:00
|
|
|
{
|
2022-06-13 16:07:29 +00:00
|
|
|
CCmdlineFix CmdlineFix(&argc, &argv);
|
2022-04-22 23:04:48 +00:00
|
|
|
log_set_global_logger_default();
|
2017-05-21 23:07:13 +00:00
|
|
|
if(argc != 2)
|
|
|
|
{
|
|
|
|
dbg_msg("usage", "uuid <NAME>");
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
CUuid Uuid = CalculateUuid(argv[1]);
|
|
|
|
char aBuf[UUID_MAXSTRSIZE];
|
|
|
|
FormatUuid(Uuid, aBuf, sizeof(aBuf));
|
|
|
|
dbg_msg("uuid", "%s", aBuf);
|
2021-11-21 17:16:14 +00:00
|
|
|
return 0;
|
2017-05-21 23:07:13 +00:00
|
|
|
}
|