mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-03 17:39:49 +00:00
cli: add Invalid mode
Silences compile warning
This commit is contained in:
parent
d26d25186d
commit
fb36bf54d3
2 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,7 @@ class CLI : public QObject
|
|||
|
||||
public:
|
||||
enum Mode {
|
||||
Invalid,
|
||||
ExportContacts,
|
||||
ExportTxHistory,
|
||||
BruteforcePassword
|
||||
|
|
|
@ -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};
|
||||
|
|
Loading…
Reference in a new issue