Skip to content

Commit

Permalink
Feat: added -l flag for print to not add a new line after print
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdelahunt committed Aug 24, 2021
1 parent 44f4121 commit 19a99b6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kasic/Commands/Print.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ public override Result<IReturnObject, KasicError> Run(Context context, Arguments
}
}

Logger.Logln("");
if(flags.Contains("-l"))
Logger.Log("");
else
Logger.Logln("");

return new ReturnObject(this);
}
}
Expand Down

0 comments on commit 19a99b6

Please sign in to comment.