Forum > Beginners

How to suppress the fpc boilerplate version and copyright?

(1/3) > >>

discretegames:
Every time I run fpc I see this boilerplate text with the version and copyright:


--- Code: ---Free Pascal Compiler version 3.2.2 [2021/05/15] for i386
Copyright (c) 1993-2021 by Florian Klaempfl and others
--- End code ---

Is there any to hide or suppress it? The verbose option -v0 does not do it.

This normally wouldn't be an issue but I'm chaining fpc compile and run commands and capturing the stdout, so I need to suppress anything except for the stdout of the actual program.

MarkMLl:
I would suggest that suppressing the author's copyright message is uncivil, and contravenes the spirit if not the letter of just about every non-PD license in existence.

I'd suggest that a useful compromise would be to accept the fact that the compiler emits those messages, but to discard them using grep in your pipeline.

MarkMLl

skalogryz:

--- Quote from: discretegames on September 21, 2021, 08:52:30 pm ---Every time I run fpc I see this boilerplate text with the version and copyright:
Is there any to hide or suppress it? The verbose option -v0 does not do it.

--- End quote ---

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---fpc -l--l - prints the logo (copyright mark)
-l- - hides the logo

@MarkMLl please don't use "Report to moderator" if a post doesn't have any explicit violations of the internet norms.

discretegames:
Thanks skalogryz! That works excellently. I knew there'd be an option for it.

MarkMLl:

--- Quote from: skalogryz on September 21, 2021, 09:10:18 pm ---@MarkMLl please don't use "Report to moderator" if a post doesn't have any explicit violations of the internet norms.

--- End quote ---

Noted, but I asked for an opinion in case nobody else had spotted this taking into account timezone disparities etc.

MarkMLl

Navigation

[0] Message Index

[#] Next page

Go to full version