tealdeer-rs / tealdeer

A very fast implementation of tldr in Rust.
https://tealdeer-rs.github.io/tealdeer/
Apache License 2.0
4.17k stars 123 forks source link

Cannot combine `-f / --render` with other options #219

Closed dbrgn closed 2 years ago

dbrgn commented 2 years ago

This command fails, even though it should work:

cargo run -- --raw -f tar.md

This is a regression introduced by #108, because of the requires-constraints in commands like raw.

First, write a regression test to catch this bug.

Then find out how to tell clap that "either a command or a -f file is required".

dbrgn commented 2 years ago

Additionally, --config-path cannot be used standalone anymore 😕 It's deprecated, but it shouldn't totally break.

Edit: Can't reproduce this issue anymore.