mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
type: Add --quiet
back
It's supposed to be *deprecated*, not removed. The documentation even specifically calls it out. Fixes #7766
This commit is contained in:
parent
12e059adf8
commit
119b978cbc
2 changed files with 5 additions and 0 deletions
|
@ -40,6 +40,7 @@ static const struct woption long_options[] = {{L"help", no_argument, nullptr, 'h
|
|||
{L"path", no_argument, nullptr, 'p'},
|
||||
{L"force-path", no_argument, nullptr, 'P'},
|
||||
{L"query", no_argument, nullptr, 'q'},
|
||||
{L"quiet", no_argument, nullptr, 'q'},
|
||||
{nullptr, 0, nullptr, 0}};
|
||||
|
||||
static int parse_cmd_opts(type_cmd_opts_t &opts, int *optind, int argc, wchar_t **argv,
|
||||
|
|
|
@ -23,6 +23,10 @@ echo $status
|
|||
type -q '['
|
||||
echo $status
|
||||
# CHECK: 0
|
||||
# Confirm that --quiet is still a thing
|
||||
type --quiet '['
|
||||
echo $status
|
||||
# CHECK: 0
|
||||
|
||||
# Test that we print a command path
|
||||
type sh
|
||||
|
|
Loading…
Reference in a new issue