We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35723db commit a641340Copy full SHA for a641340
crates/q_cli/src/cli/mod.rs
@@ -302,9 +302,12 @@ pub struct Cli {
302
303
impl Cli {
304
pub async fn execute(self) -> Result<ExitCode> {
305
- // Show legacy warning if flag is set
+ // Show legacy warning if flag is set, but not for hidden commands
306
if self.show_legacy_warning {
307
- eprintln!("\x1b[33m{}\x1b[0m", LEGACY_WARNING);
+ let is_hidden_command = matches!(self.subcommand, Some(CliRootCommands::Internal(_)));
308
+ if !is_hidden_command {
309
+ eprintln!("\x1b[33m{}\x1b[0m", LEGACY_WARNING);
310
+ }
311
}
312
313
// Initialize our logger and keep around the guard so logging can perform as expected.
0 commit comments