aboutsummaryrefslogtreecommitdiff
path: root/string_slice.go
diff options
context:
space:
mode:
authorGiovanni Bajo <[email protected]>2015-10-24 12:54:09 +0200
committerSteve Francia <[email protected]>2015-12-18 08:47:03 -0500
commit7f60f83a2c81bc3c3c0d5297f61ddfa68da9d3b7 (patch)
treeb72931e6be5530540908afd5175e97d9cb9a0915 /string_slice.go
parent76a42eaba0307accce867b21d302cc6586bc3ad3 (diff)
Issue #55: implement Go 1.5-style default usage formatting.
Compare to 1.4, the main difference in formatting is the placement of default values. Moreover, UnquoteUsage() is now added (and exported, for full API compatibility with the standard flag package), so backtick words in usage messages can be used to set the placeholder name. Compared to the standard flag package, this patch always prints usage in one-line, with automatic alignment, because I feel that the 1.4 output is very confusing when modified to include also dash-dash flags.
Diffstat (limited to 'string_slice.go')
0 files changed, 0 insertions, 0 deletions