How can you tell if an acid is ionic or covalent?

I don't know that this question has an answer. For example, HCl, in the gaseous phase, is covalent (polar covalent of course but covalent) but in water solution aqueous HCl is ionic.