mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
Emit deprecation error when read -i is used for --silent
This commit is contained in:
parent
db8ec59ac4
commit
86362e72fe
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue