2016-04-16 17:51:25 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 10:23:14 +00:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2016-04-16 17:51:25 +00:00
|
|
|
|
2018-01-03 10:23:14 +00:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2016-04-16 17:51:25 +00:00
|
|
|
*/
|
|
|
|
#include <QtCore/QCoreApplication>
|
|
|
|
|
2016-04-17 09:30:14 +00:00
|
|
|
#include "codegen/style/options.h"
|
2016-04-18 20:33:43 +00:00
|
|
|
#include "codegen/style/processor.h"
|
2016-04-16 17:51:25 +00:00
|
|
|
|
2016-03-29 21:35:36 +00:00
|
|
|
int main(int argc, char *argv[]) {
|
2016-04-16 17:51:25 +00:00
|
|
|
QCoreApplication app(argc, argv);
|
|
|
|
|
2016-04-18 20:33:43 +00:00
|
|
|
auto options = codegen::style::parseOptions();
|
2016-04-17 09:30:14 +00:00
|
|
|
if (options.inputPath.isEmpty()) {
|
|
|
|
return -1;
|
2016-04-16 17:51:25 +00:00
|
|
|
}
|
|
|
|
|
2016-04-18 20:33:43 +00:00
|
|
|
codegen::style::Processor processor(options);
|
|
|
|
return processor.launch();
|
2016-03-29 21:35:36 +00:00
|
|
|
}
|