mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
Drop deprecated history search --with-time
flag (#4403)
This flag was only documented for a few weeks before being renamed `--show-time` and has been deprecated for a long time. Fish 3.0 is a good opportunity to remove it.
This commit is contained in:
parent
9ac7da28bd
commit
67946b5509
2 changed files with 1 additions and 6 deletions
|
@ -16,13 +16,9 @@ end
|
|||
|
||||
function history --description "display or manipulate interactive command history"
|
||||
set -l cmd history
|
||||
|
||||
set -l options --exclusive 'c,e,p' --exclusive 'S,D,M,V,C' --exclusive 't,T'
|
||||
set -l options --exclusive 'c,e,p' --exclusive 'S,D,M,V,C'
|
||||
set -a options 'h/help' 'c/contains' 'e/exact' 'p/prefix'
|
||||
set -a options 'C/case-sensitive' 'R/reverse' 'z/null' 't/show-time=?' 'n#max'
|
||||
# This long option is deprecated and here solely for legacy compatibility. People should use
|
||||
# -t or --show-time now.
|
||||
set -a options 'T-with-time=?'
|
||||
# The following options are deprecated and will be removed in the next major release.
|
||||
# Note that they do not have usable short flags.
|
||||
set -a options 'S-search' 'D-delete' 'M-merge' 'V-save' 'X-clear'
|
||||
|
|
|
@ -48,7 +48,6 @@ static const struct woption long_options[] = {{L"prefix", no_argument, NULL, 'p'
|
|||
{L"contains", no_argument, NULL, 'c'},
|
||||
{L"help", no_argument, NULL, 'h'},
|
||||
{L"show-time", optional_argument, NULL, 't'},
|
||||
{L"with-time", optional_argument, NULL, 't'},
|
||||
{L"exact", no_argument, NULL, 'e'},
|
||||
{L"max", required_argument, NULL, 'n'},
|
||||
{L"null", no_argument, NULL, 'z'},
|
||||
|
|
Loading…
Reference in a new issue