@@ -70,55 +70,114 @@ pub enum CostSource {
7070#[ cfg_attr( feature = "cli" , derive( Args ) ) ]
7171#[ derive( Debug , Clone , Default ) ]
7272pub struct CommonArgs {
73- #[ cfg_attr( feature = "cli" , arg( long, short = 's' , help = "Start date filter (YYYYMMDD or YYYY-MM-DD)" ) ) ]
73+ #[ cfg_attr(
74+ feature = "cli" ,
75+ arg( long, short = 's' , help = "Start date filter (YYYYMMDD or YYYY-MM-DD)" )
76+ ) ]
7477 pub since : Option < String > ,
75- #[ cfg_attr( feature = "cli" , arg( long, short = 'u' , help = "End date filter (YYYYMMDD or YYYY-MM-DD)" ) ) ]
78+ #[ cfg_attr(
79+ feature = "cli" ,
80+ arg( long, short = 'u' , help = "End date filter (YYYYMMDD or YYYY-MM-DD)" )
81+ ) ]
7682 pub until : Option < String > ,
7783 #[ cfg_attr( feature = "cli" , arg( long, short = 'j' , help = "Output JSON report" ) ) ]
7884 pub json : bool ,
79- #[ cfg_attr( feature = "cli" , arg( long, short = 'q' , help = "Process JSON output with jq expression (implies --json)" ) ) ]
85+ #[ cfg_attr(
86+ feature = "cli" ,
87+ arg(
88+ long,
89+ short = 'q' ,
90+ help = "Process JSON output with jq expression (implies --json)"
91+ )
92+ ) ]
8093 pub jq : Option < String > ,
8194 #[ cfg_attr( feature = "cli" , arg( long, short = 'd' , help = "Show debug summary" ) ) ]
8295 pub debug : bool ,
83- #[ cfg_attr( feature = "cli" , arg( long, default_value_t = 5 , help = "Debug sample count" ) ) ]
96+ #[ cfg_attr(
97+ feature = "cli" ,
98+ arg( long, default_value_t = 5 , help = "Debug sample count" )
99+ ) ]
84100 pub debug_samples : usize ,
85101 #[ cfg_attr( feature = "cli" , arg( long, short = 'o' , value_enum, default_value_t = SortOrder :: Asc ) ) ]
86102 pub order : SortOrder ,
87- #[ cfg_attr( feature = "cli" , arg( long, short = 'b' , help = "Show per-model breakdown" ) ) ]
103+ #[ cfg_attr(
104+ feature = "cli" ,
105+ arg( long, short = 'b' , help = "Show per-model breakdown" )
106+ ) ]
88107 pub breakdown : bool ,
89- #[ cfg_attr( feature = "cli" , arg( long, short = 'O' , help = "Use offline pricing behavior" ) ) ]
108+ #[ cfg_attr(
109+ feature = "cli" ,
110+ arg( long, short = 'O' , help = "Use offline pricing behavior" )
111+ ) ]
90112 pub offline : bool ,
91- #[ cfg_attr( feature = "cli" , arg( long, short = 'z' , help = "Timezone for date grouping (e.g. UTC, Asia/Tokyo)" ) ) ]
113+ #[ cfg_attr(
114+ feature = "cli" ,
115+ arg(
116+ long,
117+ short = 'z' ,
118+ help = "Timezone for date grouping (e.g. UTC, Asia/Tokyo)"
119+ )
120+ ) ]
92121 pub timezone : Option < String > ,
93- #[ cfg_attr( feature = "cli" , arg( long, short = 'l' , help = "Locale for date/time formatting" ) ) ]
122+ #[ cfg_attr(
123+ feature = "cli" ,
124+ arg( long, short = 'l' , help = "Locale for date/time formatting" )
125+ ) ]
94126 pub locale : Option < String > ,
95127 #[ cfg_attr( feature = "cli" , arg( long, help = "Path to config JSON" ) ) ]
96128 pub config : Option < String > ,
97129 #[ cfg_attr( feature = "cli" , arg( long, help = "Force compact table mode" ) ) ]
98130 pub compact : bool ,
99- #[ cfg_attr( feature = "cli" , arg( long, help = "Worker thread count (default: CPU cores)" ) ) ]
131+ #[ cfg_attr(
132+ feature = "cli" ,
133+ arg( long, help = "Worker thread count (default: CPU cores)" )
134+ ) ]
100135 pub workers : Option < usize > ,
101136 #[ cfg_attr( feature = "cli" , arg( long, help = "Disable Claude source" ) ) ]
102137 pub no_claude : bool ,
103138 #[ cfg_attr( feature = "cli" , arg( long, help = "Disable Codex source" ) ) ]
104139 pub no_codex : bool ,
105140 #[ cfg_attr( feature = "cli" , arg( long, help = "Disable Antigravity quota probe" ) ) ]
106141 pub no_antigravity : bool ,
107- #[ cfg_attr( feature = "cli" , arg( long = "claude-projects-dir" , help = "Claude projects dir, repeatable" ) ) ]
142+ #[ cfg_attr(
143+ feature = "cli" ,
144+ arg( long = "claude-projects-dir" , help = "Claude projects dir, repeatable" )
145+ ) ]
108146 pub claude_projects_dir : Vec < String > ,
109- #[ cfg_attr( feature = "cli" , arg( long = "codex-sessions-dir" , help = "Codex sessions dir, repeatable" ) ) ]
147+ #[ cfg_attr(
148+ feature = "cli" ,
149+ arg( long = "codex-sessions-dir" , help = "Codex sessions dir, repeatable" )
150+ ) ]
110151 pub codex_sessions_dir : Vec < String > ,
111- #[ cfg_attr( feature = "cli" , arg( long = "ignore-path" , help = "Ignore paths containing this substring (repeatable)" ) ) ]
152+ #[ cfg_attr(
153+ feature = "cli" ,
154+ arg(
155+ long = "ignore-path" ,
156+ help = "Ignore paths containing this substring (repeatable)"
157+ )
158+ ) ]
112159 pub ignore_path : Vec < String > ,
113- #[ cfg_attr( feature = "cli" , arg( long, help = "Disable built-in heavy directory ignore list" ) ) ]
160+ #[ cfg_attr(
161+ feature = "cli" ,
162+ arg( long, help = "Disable built-in heavy directory ignore list" )
163+ ) ]
114164 pub no_default_ignores : bool ,
115165 #[ cfg_attr( feature = "cli" , arg( long, help = "Disable incremental parse cache" ) ) ]
116166 pub no_incremental_cache : bool ,
117- #[ cfg_attr( feature = "cli" , arg( long, help = "Rebuild incremental parse cache from scratch" ) ) ]
167+ #[ cfg_attr(
168+ feature = "cli" ,
169+ arg( long, help = "Rebuild incremental parse cache from scratch" )
170+ ) ]
118171 pub rebuild_cache : bool ,
119- #[ cfg_attr( feature = "cli" , arg( long, help = "Optional pricing override JSON file" ) ) ]
172+ #[ cfg_attr(
173+ feature = "cli" ,
174+ arg( long, help = "Optional pricing override JSON file" )
175+ ) ]
120176 pub pricing_file : Option < String > ,
121- #[ cfg_attr( feature = "cli" , arg( long, help = "Enrich reports with locally inferred coding activity" ) ) ]
177+ #[ cfg_attr(
178+ feature = "cli" ,
179+ arg( long, help = "Enrich reports with locally inferred coding activity" )
180+ ) ]
122181 pub with_activity : bool ,
123182 #[ cfg_attr( feature = "cli" , arg( long = "slow" , short = 'S' , num_args = 0 ..=1 , default_missing_value = "60" , help = "Slow output for long content (optional: ms per line, default 30)" ) ) ]
124183 pub slow : Option < u64 > ,
0 commit comments