modify PrintTargFlags unction to be more general