I'm working on a package and I want it to (usually) print a welcome message when it's loaded, primarily to leave a written trace of the version number in the notebook where it's used. For example:
BeginPackage["Test`"]; Test::usage="Testing"; Begin["`Private`"]; Print["Test Package Version 1.0"]; Test:=Print["123"]; End; EndPackage; <<Test` (* Test Package Version 1.0 *)
However this gets cumbersome in the documentation pages I'm writing, so I'd like a way to omit the welcome message. Maybe with a semicolon, as:
Needs["Test`"]; (* silently loads package *)
Needs has a semicolon or not. Is there some straightforward way to achieve this effect?