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