Issue697

Title -b doesn't show error message if no further argument given
Priority bug Status open
Assigned To Keywords
Linked issues Watchers

Submitted on 2013-09-30 14h34 by matthiaskrgr, last changed by matthiaskrgr.

Messages
Author: matthiaskrgr Date: 2013-09-30   14h34
61fd6e918b7a4c23623160ff1bef59cc4da5677d

in the code ( init.c:789 ) there is

		case 'b':
			if (!optarg) {
				fprintf(stderr, "Please specify what to benchmark.\n");
				exit(1);
			}

but it seems this "Please specify what to benchmark" message is never shown.
I assume it should be shown when I just run "freedroidRPG -b", but it isn't.

Running -b foo shows:
Unrecognized test foo. Existing tests are:
	text
	dialog
	loadship
	loadgame
	savegame
	dynarray
	mapgen
	leveltest

this should also be done for only -b, if no further arguments are given.
History
Date User Action Args
2013-09-30 14:34:19matthiaskrgrcreate