Print unknown argument itself instead of pointer address (#15300)

This commit is contained in:
Jack Clarke 2023-01-30 10:56:37 +00:00 committed by GitHub
parent c5cc0d4c16
commit 42a417577b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -576,7 +576,7 @@ static bool parseCommandLine(int* argc, char*** argv) {
std::stringstream message;
message << "Unknown arguments: ";
for (auto arg = 1; arg < *argc; arg++) {
message << argv[arg];
message << (*argv)[arg];
if (arg < *argc) {
message << " ";
}