BurntSushi / xsv

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

Add "--align" flag to table command. #209

Open alex-ozdemir opened 4 years ago

alex-ozdemir commented 4 years ago

This flag allows the user to specify how data should be aligned within columns. The options are:

This alignment is applied to all columns.

Per the tabwriter crate, center alignment breaks ties in favor of being closer to the left. Thus if "hi" appears in a column of width 5, it will be printed as " hi ".

resolves #165.