From: Vadim Zeitlin Date: Sun, 11 May 2008 23:46:24 +0000 (+0000) Subject: make GetUsageString() public, this is useful at least for the tests X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/16b627b06aafdca62f712519935224272f6945b3 make GetUsageString() public, this is useful at least for the tests git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/cmdline.h b/include/wx/cmdline.h index 8df967be96..c8f140d720 100644 --- a/include/wx/cmdline.h +++ b/include/wx/cmdline.h @@ -192,6 +192,9 @@ public: // give the usage message describing all program options void Usage() const; + // return the usage string, call Usage() to directly show it to the user + wxString GetUsageString() const; + // get the command line arguments // ------------------------------ @@ -229,9 +232,6 @@ public: static wxArrayString ConvertStringToArgs(const wxString& cmdline); private: - // get usage string - wxString GetUsageString() const; - // common part of all ctors void Init(); diff --git a/interface/cmdline.h b/interface/cmdline.h index 2cebdf9e3e..a50c66f3c5 100644 --- a/interface/cmdline.h +++ b/interface/cmdline.h @@ -430,5 +430,12 @@ public: @see SetLogo() */ void Usage() const; + + /** + Return the string containing the program usage description. + + Call Usage() to directly show this string to the user. + */ + wxString GetUsageString() const; };