vi / websocat

Command-line client for WebSockets, like netcat (or curl) for ws:// with advanced socat-like functions
MIT License
7.18k stars 278 forks source link

--line option need a better description #7

Closed alkorsan closed 6 years ago

alkorsan commented 6 years ago

in an attempt to understand what --line do, my conclusion was that: --linemode-retain-newlines only tells to --line don't remove the new lines that you remove secretly, because --line is removing every \n that it found.

the description in the help doesn't tell you it will remove \n. --line short description should contain i think this : \n will be removed and if you want to preserve them use --linemode-retain-newlines.

vi commented 6 years ago

Note: --line (-l) option itself has gone. Now there is --no-line.

Linemode is now automatically inserted when websocat is set to text mode and first and second addresses differ in their stream-oriented vs message-oriented status.

--linemode-retain-newlines also gone in favour of --linemode-strip-newlines.

TODO: non-default --linemode-drop-incomplete-lines to make simple printf "%s" work.

alkorsan commented 6 years ago

oh good changes, thank you