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:
Fabian Homborg 2021-03-02 14:53:02 +01:00
parent 12e059adf8
commit 119b978cbc
2 changed files with 5 additions and 0 deletions

View file

@ -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,

View file

@ -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