From 706f579477b5aa2bd287f9aa674281580b4f5433 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 6 May 2026 18:23:37 +0900 Subject: fix(status): remove conflicting local verbose arg The StatusArgs struct redefined `verbose` as bool while Cli defines a global `verbose: u8` with ArgAction::Count. clap's runtime type check panicked on access. Drop the local field and rely on cli.verbose, which matches Composer's StatusCommand treating -v|-vv|-vvv as a single flag. Co-Authored-By: Claude Opus 4.7 (1M context) --- crates/mozart/src/commands/status.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'crates/mozart/src') diff --git a/crates/mozart/src/commands/status.rs b/crates/mozart/src/commands/status.rs index c2f0d69..c22fd3c 100644 --- a/crates/mozart/src/commands/status.rs +++ b/crates/mozart/src/commands/status.rs @@ -5,11 +5,7 @@ use sha1::{Digest, Sha1}; use std::path::{Path, PathBuf}; #[derive(Args)] -pub struct StatusArgs { - /// Show a list of files for each modified package (implied by -v) - #[arg(short, long)] - pub verbose: bool, -} +pub struct StatusArgs {} /// Information extracted from a package's dist field. struct DistInfo { @@ -43,7 +39,7 @@ struct PackageStatus { } pub async fn execute( - args: &StatusArgs, + _args: &StatusArgs, cli: &super::Cli, console: &mozart_core::console::Console, ) -> anyhow::Result<()> { @@ -60,7 +56,7 @@ pub async fn execute( let cache_config = mozart_registry::cache::build_cache_config(cli.no_cache); let files_cache = mozart_registry::cache::Cache::files(&cache_config); - let show_files = args.verbose || cli.verbose > 0; + let show_files = cli.verbose > 0; let mut modified_packages: Vec = Vec::new(); -- cgit v1.3.1