From 19a99b6c872941911e245efe79867e2d2d9ca631 Mon Sep 17 00:00:00 2001 From: jackdelahunt Date: Tue, 24 Aug 2021 01:28:03 +0100 Subject: [PATCH] Feat: added -l flag for print to not add a new line after print --- kasic/Commands/Print.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kasic/Commands/Print.cs b/kasic/Commands/Print.cs index 2782527..441cf0d 100644 --- a/kasic/Commands/Print.cs +++ b/kasic/Commands/Print.cs @@ -46,7 +46,11 @@ public override Result Run(Context context, Arguments } } - Logger.Logln(""); + if(flags.Contains("-l")) + Logger.Log(""); + else + Logger.Logln(""); + return new ReturnObject(this); } }