diff options
| author | Luke Dashjr <[email protected]> | 2016-11-16 10:56:32 +0000 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2016-12-29 11:43:29 +0000 |
| commit | e2d9213c32e51fe197756709e24c6694f28bf842 (patch) | |
| tree | 24a4bedc19ccf827689099b27d3449bef6658935 /src/qt/rpcconsole.h | |
| parent | Qt/RPCConsole: Truncate filtered commands to just the command name, rather th... (diff) | |
| download | discoin-e2d9213c32e51fe197756709e24c6694f28bf842.tar.xz discoin-e2d9213c32e51fe197756709e24c6694f28bf842.zip | |
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 e1698711d..9567341ae 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); |