halp icon indicating copy to clipboard operation
halp copied to clipboard

Gets stuck in case of "pre-pagerized" help pages

Open seqizz opened this issue 2 years ago • 0 comments

Describe the bug

Some apps might try to show their help pages with a pager already. Might want to pipe it to "cat" or call it in a way that the app doesn't think it's an interactive terminal.

To reproduce

  1. Find a weird app (nix)
  2. Call halp for it

Expected behavior

Seeing help page

Screenshots / Logs

~> ~/Downloads/halp-0.1.2/halp nix
(°ロ°)  checking 'nix -v'
(×﹏×)      fail '-v' argument not found.
(°ロ°)  checking 'nix -V'
(×﹏×)      fail '-V' argument not found.
(°ロ°)  checking 'nix --version'
\(^ヮ^)/ success '--version' argument found!
nix (Nix) 2.11.1
(°ロ°)  checking 'nix -h'
(×﹏×)      fail '-h' argument not found.
(°ロ°)  checking 'nix --help'
... stuck here :)
^C
Session terminated, killing shell...

Software information

  • Operating system: NixOS 22.11
  • Rust version: (not relevant I assume, this is prebuilt version from releases page)
  • Project version: 0.1.2

Additional context

Thanks for the app, looks like a nice candidate as a life saver.

seqizz avatar Mar 14 '23 21:03 seqizz