Inconsistent use of dashes in target strings

I’ve noticed both - and -- being used before target keys with very little consistency. On inspection the code would seem to in fact allow an unlimited number of dashes before a key. Is this behaviour intended or would we prefer to adopt an enforced convention on the appropriate number of dashes to use for target keys? I think have a convention would improve the clarity of target strings as when I read things like c -runtime=c --link-params it implies to me that runtime is somehow a different type of key to link-params when in fact they are treated identically.

I note any such change to the user-facing target specification would require a deprecation process.

@leandron @comaniac

Hey @mbaret, yeah, right now we intend to allow arbitrary number of dashes :slight_smile: do you guys think we should settle down with a single dash or double?

Our preference would probably be for double dashes, although I can see a case for single dashes with abbreviated keys (-o -v that sort of thing).