Closed bbkane closed 4 years ago
If you pick a preferred name (ansi-8bit-escaped
or ansi-8bit-escapecode
) in a comment here, I'll be happy to submit a PR with the code change. It looks like an easy way to tell myself I can write rust code :)
Thank you for reporting this.
Let's go with escapecode
.
Thank you for the detailed bug report and the quick fix! I tagged a patch release: https://github.com/sharkdp/pastel/releases/tag/v0.7.1
Repro
The
type
argument (ansi-8bit-escaped
) is specified by$ pastel format --help
:Cause?
cli.rs
providesansi-8bit-escaped
- see https://github.com/sharkdp/pastel/blob/bb3d2abe1e9f048b646aba72ee617e1628259486/src/cli/cli.rs#L218format.rs
is looking for"ansi-8bit-escapecode"
, notansi-8bit-escaped
- see https://github.com/sharkdp/pastel/blob/b4f7c2c6253a07c38b5e7026ba9039ae246b481e/src/cli/commands/format.rs#L41