aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp
index b7bd311..57389bf 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -6,15 +6,15 @@
* SPDX-License-Identifier: GPL-3.0
*/
-#include <iostream>
-#include "version.h"
#include "browser.h"
+#include "mainwindow.h"
+#include "version.h"
#include <QCommandLineParser>
+#include <QDir>
#include <QFile>
#include <QFileInfo>
-#include <QDir>
#include <QStandardPaths>
-#include "mainwindow.h"
+#include <iostream>
// startup time measuring
#ifdef QT_DEBUG
@@ -79,7 +79,7 @@ int main(int argc, char *argv[])
parser.addVersionOption();
// user config, ~/.config/smolbote/smolbote.cfg or empty if there is none
- QCommandLineOption configOption({"c", "config"}, "Set configuration file.", "path");
+ QCommandLineOption configOption({ "c", "config" }, "Set configuration file.", "path");
configOption.setDefaultValue(QStandardPaths::locate(QStandardPaths::AppConfigLocation, "smolbote.cfg"));
parser.addOption(configOption);
@@ -96,7 +96,7 @@ int main(int argc, char *argv[])
QCommandLineOption generateUserConfigOption("generate-user-config", "Generate user configuration and exit.");
parser.addOption(generateUserConfigOption);
- QCommandLineOption profileOption({"p", "profile"}, "Use this profile.", "PROFILE");
+ QCommandLineOption profileOption({ "p", "profile" }, "Use this profile.", "PROFILE");
profileOption.setDefaultValue("");
parser.addOption(profileOption);