mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 16:37:27 +00:00
When kitten --help is run in a terminal and less is not available, ShowHelpInPager silently discards the error from pager.Run(), resulting in no output and a zero exit code. Fall back to writing help text directly to stdout when the pager fails, matching the behavior of the Python equivalent in kitty/cli.py which catches FileNotFoundError and prints the text as a fallback. Signed-off-by: Xuyiyang23333 <xuyiyang23333@gmail.com> |
||
|---|---|---|
| .. | ||
| markup | ||
| bash.go | ||
| command.go | ||
| completion-main.go | ||
| completion-parse-args.go | ||
| completion.go | ||
| files.go | ||
| files_test.go | ||
| fish.go | ||
| group.go | ||
| help.go | ||
| option-from-string.go | ||
| option.go | ||
| parse-args.go | ||
| types_test.go | ||
| wcswidth_kitten.go | ||
| zsh.go | ||