Running console sample without parameters didn't do anything by default and
didn't output anything neither which was presumably rather confusing. Do
output a welcome message at least to indicate that something happened.
Closes #13299.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68209
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
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;