diff --git a/src/builtin_type.cpp b/src/builtin_type.cpp index 870c341b9..a5e03ab6c 100644 --- a/src/builtin_type.cpp +++ b/src/builtin_type.cpp @@ -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, diff --git a/tests/checks/type.fish b/tests/checks/type.fish index d698823b7..85a2d142a 100644 --- a/tests/checks/type.fish +++ b/tests/checks/type.fish @@ -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