X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3fdcd5d5ab5629906a44a76acb6d7ca623347812..f155075229d771430f0793700f5048ad4be00e9d:/samples/console/console.cpp?ds=inline diff --git a/samples/console/console.cpp b/samples/console/console.cpp index 89647376ce..fa356714ad 100644 --- a/samples/console/console.cpp +++ b/samples/console/console.cpp @@ -103,6 +103,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;