Emit deprecation error when read -i is used for --silent

This commit is contained in:
Mahmoud Al-Qudsi 2018-03-09 11:48:51 -06:00
parent db8ec59ac4
commit 86362e72fe

View file

@ -147,6 +147,11 @@ static int parse_cmd_opts(read_cmd_opts_t &opts, int *optind, //!OCLINT(high nc
opts.delimiter = w.woptarg;
break;
}
case 'i': {
streams.err.append_format(_(L"%ls: usage of -i for --silent is deprecated. Please use -s or --silent instead.\n"),
cmd);
return STATUS_INVALID_ARGS;
}
case 's': {
opts.silent = true;
break;