control verbose mode in Portfile?
jonesc at hep.phy.cam.ac.uk
Thu May 21 15:05:40 UTC 2020
> On 21 May 2020, at 9:31 am, René J.V. Bertin <rjvbertin at gmail.com> wrote:
> Out of curiosity: is it possible to control verbose mode in a Portfile, like with `set +x` / `set -x` in shell scripts?
> I'd be interested to use that in the post-activate block of a number of my ports, as an easy way to give a little more feedback to the user.
verbose mode printout is only visible if the user activates it, i.e. 'port -v’.
If you want pass a message on to the user, you should not use verbose output to do that. Instead just use a regular ‘ui_msg'
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1930 bytes
Desc: not available
More information about the macports-dev