Let command, jobs and type take --query instead of --quiet

Now command, jobs, type, abbr, builtin, functions and set take `-q` to
query for existence, but the long option is inconsistent.

The first three use `--quiet`, the latter use `--query`. Add `--query`
to the first three, but keep `--quiet` around.

Fixes #7276.
This commit is contained in:
Fabian Homborg
2020-09-04 16:41:34 +02:00
parent 6ca2dbecfb
commit bfb5b28d0f
11 changed files with 41 additions and 7 deletions

View File

@@ -26,6 +26,7 @@ static const wchar_t *const short_options = L":ahqsv";
static const struct woption long_options[] = {{L"help", no_argument, nullptr, 'h'},
{L"all", no_argument, nullptr, 'a'},
{L"quiet", no_argument, nullptr, 'q'},
{L"query", no_argument, nullptr, 'q'},
{L"search", no_argument, nullptr, 's'},
{nullptr, 0, nullptr, 0}};