I am writing CLI program that can accept very long strings. For this reason I decided to pipe the data into the program as I would hit limitation of the shell / OS.
- How should these CLI program display documentation? When I launch it, it waits for input so I have no way of displaying to the user what should be done.
- I could detect that program was run with
-h/--helpflag and perhaps display the documentation. What is the idiomatic format of stdin arguments for programs that accept stdin as their required argument.