blob: 18d4b9f3b29aa1bced2598d0f83932188712e227 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#pragma once
#include <QCommandLineParser>
#include <QString>
#include <QApplication>
enum CommandLineParseResult {
CommandLineOk,
CommandLineError,
CommandLineVersionRequested,
CommandLineHelpRequested
};
struct CommandLineParsedOptions {
CommandLineParseResult result;
QString error_message;
QString outbox_filename;
};
CommandLineParsedOptions parse_command_line(QCommandLineParser &parser, QApplication &app);
|