cargo/tests/testsuite/cargo_init
Eric Huss 80ffb1de1c Fix --quiet being used with nested subcommands.
This fixes an issue where `--quiet` doesn't work with commands that have
subcommands. This is because `config_configure` only looks at the global
and top-level subcommand, and not deeper subcommands. The issue was that
`--quiet` was not defined as a global flag. This was changed in
https://github.com/rust-lang/cargo/pull/6358 in order to give a better
help message for `cargo test --quiet`. I don't remember if clap just
didn't support overriding at the time, or if we just didn't know how it
worked. Anyways, it seems to work to override it now, so I think it
should be fine to mark it as global.

This should bring in `--quiet` more in-line with how `--verbose` works.
This means that `--quiet` is now accepted with `cargo report`,
`cargo help`, and `cargo config`.

This also fixes `--quiet` with `cargo clean gc`.

This should also help with supporting `--quiet` with the new `cargo
owner` subcommands being added in
https://github.com/rust-lang/cargo/pull/11879.

Fixes #12957
2023-11-12 11:17:43 -08:00
..
auto_git fix(new): Don't ignore Cargo.lock for all package types 2023-07-19 11:56:40 -05:00
bin_already_exists_explicit refactor(tests): Name init ui tests more consistently 2023-07-24 13:39:37 -05:00
bin_already_exists_explicit_nosrc refactor(tests): Name init ui tests more consistently 2023-07-24 13:39:37 -05:00
bin_already_exists_implicit refactor(tests): Name init ui tests more consistently 2023-07-24 13:39:37 -05:00
bin_already_exists_implicit_namenosrc refactor(tests): Name init ui tests more consistently 2023-07-24 13:39:37 -05:00
bin_already_exists_implicit_namesrc refactor(tests): Name init ui tests more consistently 2023-07-24 13:39:37 -05:00
bin_already_exists_implicit_nosrc refactor(tests): Name init ui tests more consistently 2023-07-24 13:39:37 -05:00
both_lib_and_bin refactor(tests): Name init ui tests more consistently 2023-07-24 13:39:37 -05:00
cant_create_library_when_both_binlib_present refactor(tests): Name init ui tests more consistently 2023-07-24 13:39:37 -05:00
confused_by_multiple_lib_files refactor(tests): Name init ui tests more consistently 2023-07-24 13:39:37 -05:00
creates_binary_when_both_binlib_present refactor(tests): Name init ui tests more consistently 2023-07-24 13:39:37 -05:00
creates_binary_when_instructed_and_has_lib_file refactor(tests): Name init ui tests more consistently 2023-07-24 13:39:37 -05:00
creates_library_when_instructed_and_has_bin_file refactor(tests): Name init ui tests more consistently 2023-07-24 13:39:37 -05:00
empty_dir Update workspace manifest with new members. 2023-10-28 07:42:23 -07:00
explicit_bin_with_git refactor(tests): Name init ui tests more consistently 2023-07-24 13:39:37 -05:00
formats_source refactor(tests): Name init ui tests more consistently 2023-07-24 13:39:37 -05:00
fossil_autodetect fix(new): Don't ignore Cargo.lock for all package types 2023-07-19 11:56:40 -05:00
git_autodetect fix(new): Don't ignore Cargo.lock for all package types 2023-07-19 11:56:40 -05:00
git_ignore_exists_no_conflicting_entries fix(new): Don't ignore Cargo.lock for all package types 2023-07-19 11:56:40 -05:00
help Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
ignores_failure_to_format_source refactor(tests): Name init ui tests more consistently 2023-07-24 13:39:37 -05:00
inferred_bin_with_git refactor(tests): Name init ui tests more consistently 2023-07-24 13:39:37 -05:00
inferred_lib_with_git fix(new): Don't ignore Cargo.lock for all package types 2023-07-19 11:56:40 -05:00
inherit_workspace_package_table refactor(tests): Name init ui tests more consistently 2023-07-24 13:39:37 -05:00
invalid_dir_name refactor(tests): Name init ui tests more consistently 2023-07-24 13:39:37 -05:00
lib_already_exists_nosrc refactor(tests): Name init ui tests more consistently 2023-07-24 13:39:37 -05:00
lib_already_exists_src refactor(tests): Name init ui tests more consistently 2023-07-24 13:39:37 -05:00
mercurial_autodetect fix(new): Don't ignore Cargo.lock for all package types 2023-07-19 11:56:40 -05:00
multibin_project_name_clash refactor(tests): Name init ui tests more consistently 2023-07-24 13:39:37 -05:00
no_filename refactor(tests): Name init ui tests more consistently 2023-07-24 13:39:37 -05:00
path_contains_separator refactor(tests): Name init ui tests more consistently 2023-07-24 13:39:37 -05:00
pijul_autodetect fix(new): Don't ignore Cargo.lock for all package types 2023-07-19 11:56:40 -05:00
reserved_name refactor(tests): Name init ui tests more consistently 2023-07-24 13:39:37 -05:00
simple_bin refactor(tests): Name init ui tests more consistently 2023-07-24 13:39:37 -05:00
simple_git fix(new): Don't ignore Cargo.lock for all package types 2023-07-19 11:56:40 -05:00
simple_git_ignore_exists fix(new): Don't ignore Cargo.lock for all package types 2023-07-19 11:56:40 -05:00
simple_hg fix(new): Don't ignore Cargo.lock for all package types 2023-07-19 11:56:40 -05:00
simple_hg_ignore_exists fix(new): Don't ignore Cargo.lock for all package types 2023-07-19 11:56:40 -05:00
simple_lib refactor(tests): Name init ui tests more consistently 2023-07-24 13:39:37 -05:00
unknown_flags fix(help): Consistently use SCREAMING_CASE for value names 2023-10-17 16:47:44 -05:00
with_argument refactor(tests): Name init ui tests more consistently 2023-07-24 13:39:37 -05:00
workspace_add_member Update workspace manifest with new members. 2023-10-28 07:42:23 -07:00
mod.rs Update workspace manifest with new members. 2023-10-28 07:42:23 -07:00