mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 18:21:16 -03: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user