cgag / loc

Count lines of code quickly.
MIT License
2.29k stars 126 forks source link

Add --width command line option #70

Open brewingcode opened 6 years ago

brewingcode commented 6 years ago
    -w, --width <N>             Change width of output from 80 to N, or use full terminal width with N = `full`

As noted in #39, filenames quickly run into truncation issues. This PR allows you to change the output width from the default of 80 chars to another value. Additionally, specifying full instead of a number will use the terminal_size crate to use the whole width of the terminal.