mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 17:31:14 -03:00
Emit deprecation error when read -i is used for --silent
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user