diff options
| author | Matthias Melcher <github@matthiasm.com> | 2022-11-23 10:59:43 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2022-11-23 10:59:43 +0100 |
| commit | be6e5fad7252a2c40a798b538510d9c0842be3fb (patch) | |
| tree | 308b79455105e0ae8367ff99caf3791c4cbd05a7 /fluid | |
| parent | 73b24c2104ddc6f962797635cbcc4d96556df7cd (diff) | |
Fluid: Fix commandline parameter error message
Diffstat (limited to 'fluid')
| -rw-r--r-- | fluid/fluid.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx index 39c98ee78..252353bb3 100644 --- a/fluid/fluid.cxx +++ b/fluid/fluid.cxx @@ -1943,10 +1943,15 @@ int main(int argc,char **argv) { " -o <name> : .cxx output filename, or extension if <name> starts with '.'\n" " -h <name> : .h output filename, or extension if <name> starts with '.'\n" " -d : enable internal debugging\n"; + const char *app_name = NULL; + if ( (argc > 0) && argv[0] && argv[0][0] ) + app_name = fl_filename_name(argv[0]); + if ( !app_name || !app_name[0]) + app_name = "fluid"; #ifdef _MSC_VER - fl_message("%s\n", msg); + fl_message(msg, app_name); #else - fprintf(stderr, "%s\n", msg); + fprintf(stderr, msg, app_name); #endif return 1; } |
