sharkdp / hexyl

A command-line hex viewer
Apache License 2.0
9.07k stars 227 forks source link

Show help if no file / stream is provided #42

Closed bennetthardwick closed 5 years ago

bennetthardwick commented 5 years ago

Currently, running hexyl without an input stream or file will show the start of the output and then stop without exiting. This PR replaces that behavior and instead shows the help menu and closes with exit code 1.

kilobyte commented 5 years ago

This has already been discussed and rejected in #14

Why would that be a problem? It's how most Unix filter-type tools work if they can reasonably work on plain text input. So does for example hd for which hexyl is a replacement.