BurntSushi / xsv

A fast CSV command line toolkit written in Rust.
The Unlicense
10.23k stars 317 forks source link

bug: xsv count #329

Open sharkLoc opened 10 months ago

sharkLoc commented 10 months ago

Option -n has the opposite effect

head tmp.txt  | xsv  count
output: 9

head tmp.txt  | xsv  count -n       
output: 10
BurntSushi commented 10 months ago

The docs are wrong. They should say that --no-headers means that the header row is included in the count.

mafrosis commented 9 months ago

Suggest to rename the parameter to --include-headers?

Kanezoh commented 4 months ago

They should say that --no-headers means that the header row is included in the count.

I made a PR to correct the description.

https://github.com/BurntSushi/xsv/pull/340