diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2016-11-16 10:56:32 +0000 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2016-12-29 11:43:29 +0000 |
commit | e2d9213c32e51fe197756709e24c6694f28bf842 (patch) | |
tree | 24a4bedc19ccf827689099b27d3449bef6658935 /src/qt/rpcconsole.h | |
parent | 1755c04576eb42467ba16af9f2658e12b707b7d0 (diff) |
Qt/RPCConsole: Make it possible to parse a command without executing it
Diffstat (limited to 'src/qt/rpcconsole.h')
-rw-r--r-- | src/qt/rpcconsole.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qt/rpcconsole.h b/src/qt/rpcconsole.h index e1698711da..9567341ae2 100644 --- a/src/qt/rpcconsole.h +++ b/src/qt/rpcconsole.h @@ -36,7 +36,10 @@ public: explicit RPCConsole(const PlatformStyle *platformStyle, QWidget *parent); ~RPCConsole(); - static bool RPCExecuteCommandLine(std::string &strResult, const std::string &strCommand); + static bool RPCParseCommandLine(std::string &strResult, const std::string &strCommand, bool fExecute); + static bool RPCExecuteCommandLine(std::string &strResult, const std::string &strCommand) { + return RPCParseCommandLine(strResult, strCommand, true); + } void setClientModel(ClientModel *model); |