]> git.saurik.com Git - wxWidgets.git/commitdiff
make GetUsageString() public, this is useful at least for the tests
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 11 May 2008 23:46:24 +0000 (23:46 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 11 May 2008 23:46:24 +0000 (23:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/cmdline.h
interface/cmdline.h

index 8df967be960b83f35040763147b3f502684fa524..c8f140d7208a0788a8691b3b9aa21ce1be0906f2 100644 (file)
@@ -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();
 
index 2cebdf9e3e03f7d9ee53b98981d371b1273340ff..a50c66f3c5afd72dcca441015d3d52fc2868ede0 100644 (file)
@@ -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;
 };