Mercurial > hg > forks > gldragon
comparison gldragon.cpp @ 58:801d4c5c0f23
Print out the full argument, not trimmed option when complaining about an unknown option argument.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 09 Dec 2019 12:09:04 +0200 |
parents | 3f635b7ea2cf |
children | 5a45c5c0a516 |
comparison
equal
deleted
inserted
replaced
57:3f635b7ea2cf | 58:801d4c5c0f23 |
---|---|
464 case 'v': optVSyncMode = atoi(opt + 1); break; | 464 case 'v': optVSyncMode = atoi(opt + 1); break; |
465 } | 465 } |
466 break; | 466 break; |
467 | 467 |
468 default: | 468 default: |
469 printf("Unknown option '%s'.\n", opt); | 469 printf("Unknown option '%s'.\n", arg); |
470 goto exit; | 470 goto exit; |
471 } | 471 } |
472 } | 472 } |
473 else | 473 else |
474 { | 474 { |