Replies: 1 comment
-
We intentionally keep our API surface focused for easier maintenance.
If the concern is build times, you can always use the same underlying library, either As for runtime performance, the overhead should be unnoticeable especially considering everything else clap or the rest of a CLI will do. I'd recommend being guided by benchmarking and profiling.
We do have |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm developing a program that prints sorted stats by default, but only when
stdoutis connected to a TTY:Then I realized that
clapalso performs an "is-TTY" check. I want to reuse that data in my app, to avoid duplicate code-gen and sys-calls.It seems
clapdoesn't provide such "low-level" details, that's why I've opened this discussion.Another alternative would be to support configuring
clapto not perform the check, and instead rely on the user to provide theboolvalue themselves. This way, the user can check ifstdoutis a TTY in whatever way they wantBeta Was this translation helpful? Give feedback.
All reactions