| 1501 | return GetArgv0(); |
| 1502 | } |
| 1503 | const char* ProgramInvocationShortName() { // like the GNU libc fn |
| 1504 | const char* slash = strrchr(argv0, '/'); |
| 1505 | #ifdef OS_WINDOWS |
| 1506 | if (!slash) slash = strrchr(argv0, '\\'); |
| 1507 | #endif |
| 1508 | return slash ? slash + 1 : argv0; |
| 1509 | } |
| 1510 | |
| 1511 | void SetUsageMessage(const string& usage) { |
| 1512 | if (program_usage != NULL) |
no outgoing calls
no test coverage detected