CLI interface to medialist (fossil mirror)
Revision | 2b2cf530826508f75dc6abf50a1a1a6b7fe5991d (tree) |
---|---|
Zeit | 2023-04-05 19:36:08 |
Autor | mio <stigma@disr...> |
Commiter | mio |
Fix instances of writeln being called with a format specifier.
FossilOrigin-Name: 4ca78aeb71910fb1bc74ac527e8a00c521a8ad4edb1ba39fe7fa5e02e6843994
@@ -419,7 +419,7 @@ private bool deleteFromList(MediaList* list, bool shouldVerifyDelete, string[] a | ||
419 | 419 | catch (ConvException ce) |
420 | 420 | { |
421 | 421 | stderr.writefln("ERROR: Failed to delete %s from %s.", arg, list.listName); |
422 | - stderr.writeln ("ISSUE: Couldn't convert %s to an unsigned number.", arg); | |
422 | + stderr.writefln("ISSUE: Couldn't convert %s to an unsigned number.", arg); | |
423 | 423 | stderr.writeln (" NOTE: No items have been removed from the list."); |
424 | 424 | return false; |
425 | 425 | } |
@@ -455,13 +455,13 @@ private bool deleteFromList(MediaList* list, bool shouldVerifyDelete, string[] a | ||
455 | 455 | |
456 | 456 | if ("yes" == res) |
457 | 457 | { |
458 | - writeln(" Will delete %s.", item.title); | |
458 | + writefln(" Will delete %s.", item.title); | |
459 | 459 | cmdArgs ~= to!string(ids[idx]); |
460 | 460 | item.valid = false; |
461 | 461 | } |
462 | 462 | else |
463 | 463 | { |
464 | - writeln(" Will not delete %s.", item.title); | |
464 | + writefln(" Will not delete %s.", item.title); | |
465 | 465 | } |
466 | 466 | idx += 1; |
467 | 467 | } |
@@ -662,7 +662,7 @@ private bool exportList(MediaList* list, string[] args) | ||
662 | 662 | exportType = ExportType.html; |
663 | 663 | } else { |
664 | 664 | stderr.writefln("ERROR: Failed to export list '%s'", list.listName); |
665 | - stderr.writeln ("ISSUE: Invalid export type '%s'. " ~ | |
665 | + stderr.writefln("ISSUE: Invalid export type '%s'. " ~ | |
666 | 666 | "Must be either 'json' or 'html'.", args[1]); |
667 | 667 | return false; |
668 | 668 | } |