4 ms·
//Opinion The issue with socat (and some other tools) is the esoteric argument syntax. Arguments should always be passed as "-s arg" for short option names, or
by emilfihlman 6y ago
//Opinion
The issue with socat (and some other tools) is the esoteric argument syntax. Arguments should always be passed as "-s arg" for short option names, or more preferably "--long-name argument" as long names, and multiple different things should be passed as multiple different arguments instead of some crammed way.
- tyingq 6y agoSince you can specify several devices on one command line, that might make the number of options too high. The "cramming" allows the 2nd, 3rd, etc, argument to contextually tie to the first. Like: "/dev/ttyUSB0,b115200,rawer"
- Hello71 6y agoffmpeg (and some other programs) has a different solution to this: options apply to the succeeding non-option argument: ffmpeg -f wav infile -f mp4 outfile means to convert the wav infile to an mp4 outfile. of course, nobody ever reads the manual, so they use it wrong.
- rubatuga 6y agoI agree with you, it has some bad parsing bugs if you actually want characters like commas and colons as arguments.