Follow

If your program does this, it's bad and you should feel bad:
```
Unknown option -h. Use --help for usage information.
```

Also bad:
* `Unknown option --help. Use -h instead`
* `Use -help for help`
* Anything with `-?` or worse `/?`

Also, who ever changed it so that `less` uses the vt100 alternate screen and erases the text on exit made a bad decision. Please step into the time machine back to 1994 and revert patch 227 that added `-X` and `no_init`

@th I do like when full-screen TUI is removed on exit, and leave the scrolling text history for actual command lines.

@javierg 99% of the time I've scrolled through a man page to find an obscure command line option, which then disappears when I press `q` to exit less, so I can no longer refer to the documentation. That's why I think it was a mistake to not make `-X` the default.

@th @javierg this is my exact beef as well. it was clearly developed by people who had access to two VT100s side-by-side

@phooky @javierg three vt100s is the ideal high-productivity desktop environment

@javierg @phooky that sounds like a proper setup, plus an ASR33 for the occasional hardcopy.

@th @javierg I still want prompt screens instead of man pages for exactly this use case

(what if your man page was a form that you could fill in, and also you could expand a prompt screen on each field inside of that form, to get possible values)

@th some days i think we should just write a set of new utils from scratch

@th This screen clearing is incredibly annoying! But the #neovim author doesn't even know what the problem is and won't add the exit without clearing. So classic #vim forever! ;)

@th my fingers know the answer by heart

infocmp -l > a
vi a
/.mcup RET
dWn.ZZ
tic a; rm a

@th just throwing the usage information at the user without even telling there was a bad option anyhow

@th or in those 'suites' with "foo <command>" where it is something like "foo help <command>", "foo <command> help" or some other permutation. Infuriating.

Sign in to participate in the conversation
(void *) social site

(void*)