// 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
// kill the last '\n'
input[wxStrlen(input) - 1] = 0;
-
+
if (wxStrcmp(input, "quit") == 0)
break;
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;