cli: add Invalid mode

Silences compile warning
This commit is contained in:
tobtoht 2022-02-10 13:25:08 +01:00
parent d26d25186d
commit fb36bf54d3
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C
2 changed files with 2 additions and 0 deletions

View file

@ -13,6 +13,7 @@ class CLI : public QObject
public:
enum Mode {
Invalid,
ExportContacts,
ExportTxHistory,
BruteforcePassword

View file

@ -176,6 +176,7 @@ if (AttachConsole(ATTACH_PARENT_PROCESS)) {
return CLI::Mode::ExportTxHistory;
if (bruteforcePassword)
return CLI::Mode::BruteforcePassword;
return CLI::Mode::Invalid;
}();
CLI cli{mode, &parser, &app};