diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-06-03 16:12:19 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-06-11 14:22:50 +0200 |
commit | 96b733e99694e74dcd38b16112655f7e1ea2d43b (patch) | |
tree | 348d0303f312fd56ef39b413d3849ea6ae7ed122 /src/qt/utilitydialog.h | |
parent | 9c8d2f6df0d748152d858cfea09e4463758c8df6 (diff) |
Add `-version` option to get just the version
Adds a `-version` or `--version` option to print just the version
of the program for bitcoind, bitcoin-cli and bitcoin-qt.
Also make it that `-help` can be used to display the help (as well as
existing `--help`). Up to now, `-help` was the only option that didn't
work with either one or two dashes.
Diffstat (limited to 'src/qt/utilitydialog.h')
-rw-r--r-- | src/qt/utilitydialog.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/qt/utilitydialog.h b/src/qt/utilitydialog.h index 874daf6a7f..cc23420169 100644 --- a/src/qt/utilitydialog.h +++ b/src/qt/utilitydialog.h @@ -40,7 +40,7 @@ class HelpMessageDialog : public QDialog Q_OBJECT public: - explicit HelpMessageDialog(QWidget *parent); + explicit HelpMessageDialog(QWidget *parent, bool versionOnly); ~HelpMessageDialog(); void printToConsole(); @@ -48,9 +48,6 @@ public: private: Ui::HelpMessageDialog *ui; - QString header; - QString coreOptions; - QString uiOptions; private slots: void on_okButton_accepted(); |