Skip to content

Commit

Permalink
Fix csv2table
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Rabot <[email protected]>
  • Loading branch information
sylr committed Jan 2, 2021
1 parent 42e21c7 commit 63f2fd9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions csv2table/csv2table.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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()
}

Expand Down

1 comment on commit 63f2fd9

@sigzegv
Copy link

@sigzegv sigzegv commented on 63f2fd9 Oct 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is there a commit removing the case option? Is this a mistake ?

Please sign in to comment.