• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

CLI interface to medialist (fossil mirror)


Commit MetaInfo

Revision2b2cf530826508f75dc6abf50a1a1a6b7fe5991d (tree)
Zeit2023-04-05 19:36:08
Autormio <stigma@disr...>
Commitermio

Log Message

Fix instances of writeln being called with a format specifier.

FossilOrigin-Name: 4ca78aeb71910fb1bc74ac527e8a00c521a8ad4edb1ba39fe7fa5e02e6843994

Ändern Zusammenfassung

Diff

--- a/main.d
+++ b/main.d
@@ -419,7 +419,7 @@ private bool deleteFromList(MediaList* list, bool shouldVerifyDelete, string[] a
419419 catch (ConvException ce)
420420 {
421421 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);
423423 stderr.writeln (" NOTE: No items have been removed from the list.");
424424 return false;
425425 }
@@ -455,13 +455,13 @@ private bool deleteFromList(MediaList* list, bool shouldVerifyDelete, string[] a
455455
456456 if ("yes" == res)
457457 {
458- writeln(" Will delete %s.", item.title);
458+ writefln(" Will delete %s.", item.title);
459459 cmdArgs ~= to!string(ids[idx]);
460460 item.valid = false;
461461 }
462462 else
463463 {
464- writeln(" Will not delete %s.", item.title);
464+ writefln(" Will not delete %s.", item.title);
465465 }
466466 idx += 1;
467467 }
@@ -662,7 +662,7 @@ private bool exportList(MediaList* list, string[] args)
662662 exportType = ExportType.html;
663663 } else {
664664 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'. " ~
666666 "Must be either 'json' or 'html'.", args[1]);
667667 return false;
668668 }