X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3fdcd5d5ab5629906a44a76acb6d7ca623347812..fa699cbaaf217af186cd04dd10d6ec67c8667136:/samples/console/console.cpp?ds=sidebyside 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;