3 ms·
Using stdin also solves the problem of special characters in argv being interpreted by the shell. Even something like a hyphen might be mistaken for a flag. cl
by styfle 6y ago
Using stdin also solves the problem of special characters in argv being interpreted by the shell. Even something like a hyphen might be mistaken for a flag.
cli add user1 -passWord
cli add user2 passw*
etc