]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/console/console.cpp
OSX_ARCH_OPTS also needs to be added to CPPFLAGS.
[wxWidgets.git] / samples / console / console.cpp
index b8b624de18a5499b9fab2627994f19e9bd24d6ad..2d2d435070786f5426505e375af19296560d65b3 100644 (file)
@@ -4,9 +4,8 @@
 // Author:      Vadim Zeitlin
 // Modified by:
 // Created:     04.10.99
-// RCS-ID:      $Id$
 // Copyright:   (c) 1999 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
-// Licence:     wxWindows license
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 // ============================================================================
 // ----------------------------------------------------------------------------
 // headers
 // ----------------------------------------------------------------------------
+
 // For compilers that support precompilation, includes "wx/wx.h".
 #include "wx/wxprec.h"
+
 #ifdef __BORLANDC__
     #pragma hdrstop
 #endif
@@ -80,7 +79,7 @@ int main(int argc, char **argv)
 
                     // kill the last '\n'
                     input[wxStrlen(input) - 1] = 0;
-                    
+
                     if (wxStrcmp(input, "quit") == 0)
                         break;
 
@@ -103,6 +102,14 @@ int main(int argc, char **argv)
             break;
     }
 
+    if ( argc == 1 )
+    {
+        // If there were no command-line options supplied, emit a message
+        // otherwise it's not obvious that the sample ran successfully
+        wxPrintf("Welcome to the wxWidgets 'console' sample!\n");
+        wxPrintf("For more information, run it again with the --help option\n");
+    }
+
     // do something useful here
 
     return 0;