XaF/omni

bug: panic when printing help in low terminal resolution

Closed this issue · 0 comments

XaF commented

Omni raises an error when printing the help in a terminal that does not have sufficient width to print it.
We should handle that better, i.e. by collapsing things as needed to make it work in lower terminal resolutions, but also showing an error message if the terminal is too small to print anything.

$ omni help
omni - omnipotent tool (v0.0.21)

Usage: omni <command> [options] ARG...
thread 'main' panicked at src/internal/commands/builtin/help.rs:317:25:
attempt to subtract with overflow
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace