Is there here document and here string support in Elixir?

ok, looks like I got it

So the best (to not cause confusion - look that cat does not say anything) way without hacks is printing some text like:

./example --test
[debug] Reading stdin for argument '--test'. In case you forgot to give it you can type it now. When you done please press '<ctrl>' + '<d>' in order to continue.
some
multiline
text here <ctrl>+<d>
["--test", "some\nmultiline\ntext here"]

Unfortunately even if there would be already << EOF … EOF argument value it looks like that’s not possible to handle it separately (to not print debug message in such case).

No, the best way is to say --test reads from stdin in its documentation or even better, adhere to the same convention that cat does. Treat the “value” as a file name and read from there, and if that “value” is -, just read from stdin.

In my opinion that output would add unnecessary noise.

2 Likes