diff options
Diffstat (limited to 'cpp/src/Ice/PropertiesI.cpp')
-rw-r--r-- | cpp/src/Ice/PropertiesI.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cpp/src/Ice/PropertiesI.cpp b/cpp/src/Ice/PropertiesI.cpp index da529c0f115..84cf6c09e77 100644 --- a/cpp/src/Ice/PropertiesI.cpp +++ b/cpp/src/Ice/PropertiesI.cpp @@ -64,6 +64,15 @@ Ice::PropertiesI::parseArgs(int& argc, char* argv[]) return; } + if (argc > 0) + { + string name = getProperty("Ice.ProgramName"); + if (name.empty()) + { + setProperty("Ice.ProgramName", argv[0]); + } + } + int idx = 1; while (idx < argc) { |