- try {
- // check for any spurious extra arguments
- // other than documents
- for (int argi = 1; argi < argc ; ++argi) {
- if (argv[argi][0] == '-') {
- lyxerr << to_utf8(
- bformat(_("Wrong command line option `%1$s'. Exiting."),
- from_utf8(os::utf8_argv(argi)))) << endl;
- return EXIT_FAILURE;
- }
- }
-
- // Initialization of LyX (reads lyxrc and more)
- LYXERR(Debug::INIT, "Initializing LyX::init...");
- bool success = init();
- LYXERR(Debug::INIT, "Initializing LyX::init...done");
- if (!success)
+ // check for any spurious extra arguments
+ // other than documents
+ for (int argi = 1; argi < argc ; ++argi) {
+ if (argv[argi][0] == '-') {
+ lyxerr << to_utf8(
+ bformat(_("Wrong command line option `%1$s'. Exiting."),
+ from_utf8(os::utf8_argv(argi)))) << endl;