deprecate --stdin

This commit is contained in:
Jarcode
2019-03-15 00:42:43 -07:00
parent 706ec0fcd4
commit ad66445c28

View File

@@ -364,8 +364,10 @@ int main(int argc, char** argv) {
append_buf(binds, &binds_sz, bd);
break;
}
case 'i': { /* TODO: remove */
case 'i': {
if (binds_sz > 0) goto conflict_error;
fprintf(stderr, "Warning: `--stdin` is deprecated and will be "
"removed in a future release, use `--pipe` instead. \n");
stdin_type = -1;
if (optarg == NULL) {
stdin_type = STDIN_TYPE_VEC4;