• Russ Cox's avatar
    cmd/link: deprecate -X name value in favor of -X name=value · 12795c02
    Russ Cox authored
    People invoking the linker directly already have to change their scripts
    to use the new "go tool link", so this is a good time to make the -X flag
    behave like all other Go flags and take just a single argument.
    
    The old syntax will continue to be accepted (it is rewritten into the new
    syntax before flag parsing). Maybe some day we will be able to retire it.
    
    Even if we never retire the old syntax, having the new syntax at least
    makes the rewriting much less of a kludge.
    
    Change-Id: I91e8df94f4c22b2186e81d7f1016b8767d777eac
    Reviewed-on: https://go-review.googlesource.com/10310Reviewed-by: 's avatarRob Pike <r@golang.org>
    12795c02
data.go 42.2 KB