mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Make quote marks consistent in error/warning messages (#1791)
- "Double quotes" for strings (filenames, section names, CLI option arguments, etc) - 'Single quotes' for characters and CLI option flags - `Backticks` for keywords and identifiers (symbol names, charmap names, etc) CLI option flags also have their leading dashes
This commit is contained in:
@@ -312,7 +312,7 @@ static void generatePalSpec(Image const &image) {
|
||||
// Generate a palette spec from the first few colors in the embedded palette
|
||||
std::vector<Rgba> const &embPal = image.png.palette;
|
||||
if (embPal.empty()) {
|
||||
fatal("`-c embedded` was given, but the PNG does not have an embedded palette!");
|
||||
fatal("\"-c embedded\" was given, but the PNG does not have an embedded palette!");
|
||||
}
|
||||
|
||||
// Ignore extraneous colors if they are unused
|
||||
@@ -794,7 +794,7 @@ static UniqueTiles dedupTiles(
|
||||
if (matchType != TileData::NOPE) {
|
||||
error(
|
||||
"The input tileset's tile #%hu was deduplicated; please check that your "
|
||||
"deduplication flags (`-u`, `-m`) are consistent with what was used to "
|
||||
"deduplication flags ('-u', '-m') are consistent with what was used to "
|
||||
"generate the input tileset",
|
||||
tileID
|
||||
);
|
||||
@@ -815,7 +815,7 @@ static UniqueTiles dedupTiles(
|
||||
if (inputWithoutOutput && matchType == TileData::NOPE) {
|
||||
error(
|
||||
"Tile at (%" PRIu32 ", %" PRIu32
|
||||
") is not within the input tileset, and `-o` was not given!",
|
||||
") is not within the input tileset, and '-o' was not given!",
|
||||
tile.x,
|
||||
tile.y
|
||||
);
|
||||
@@ -1078,8 +1078,7 @@ continue_visiting_tiles:;
|
||||
|
||||
// I currently cannot figure out useful semantics for this combination of flags.
|
||||
if (!options.inputTileset.empty()) {
|
||||
fatal("Input tilesets are not supported without `-u`\nPlease consider explaining your "
|
||||
"use case to RGBDS' developers!");
|
||||
fatal("Input tilesets are not supported without '-u'");
|
||||
}
|
||||
|
||||
if (!options.output.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user