diff --git a/csv2table/csv2table.go b/csv2table/csv2table.go index 6420c96..05c0b09 100644 --- a/csv2table/csv2table.go +++ b/csv2table/csv2table.go @@ -18,7 +18,6 @@ var ( align = flag.String("a", "none", "Set alignment with eg. none|left|right|center") pipe = flag.Bool("p", false, "Support for Piping from STDIN") border = flag.Bool("b", true, "Enable / disable table border") - casing = flag.Bool("c", false, "Set header to be title case") ) func main() { @@ -77,10 +76,6 @@ func process(r io.Reader) { table.SetAlignment(tablewriter.ALIGN_CENTER) } table.SetBorder(*border) - if *casing { - table.SetAutoFormatHeaders(false) - table.SetTitleCase(*casing) - } table.Render() } diff --git a/go.mod b/go.mod index 0430d99..484ab01 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module github.com/olekukonko/tablewriter go 1.12 -require github.com/mattn/go-runewidth v0.0.7 +require github.com/mattn/go-runewidth v0.0.9 diff --git a/go.sum b/go.sum index 1e7b9aa..4a94bf5 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,2 @@ -github.com/mattn/go-runewidth v0.0.7 h1:Ei8KR0497xHyKJPAv59M1dkC+rOZCMBJ+t3fZ+twI54= -github.com/mattn/go-runewidth v0.0.7/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= +github.com/mattn/go-runewidth v0.0.9 h1:Lm995f3rfxdpd6TSmuVCHVb/QhupuXlYr8sCI/QdE+0= +github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=