rust-secure-code / cargo-supply-chain

Gather author, contributor and publisher data on crates in your dependency graph.
Apache License 2.0
316 stars 19 forks source link

Help shows commands misaligned #46

Closed Nemo157 closed 3 years ago

Nemo157 commented 3 years ago

image

Using tabs for alignment is wrong, they should only be used for initial indentation, since you don't know where the users tab stops will be.

Shnatsel commented 3 years ago

Thanks for the report!

I was under the impression that this is how most tools with subcommands handled help text. Are you aware of a better way? Say, spaces, non-breaking spaces, or something else entirely from the dark corners of ascii?

Nemo157 commented 3 years ago

Afaik generally tools just use spaces, e.g. clap use fn spaces for dynamically calculated widths and a hardcoded TAB made of spaces for static widths.

Shnatsel commented 3 years ago

Fixed in 180c07aaed3767cc4775a34d922bca3078ada946. Ripgrep doesn't show any other tabs in the codebase.