From 97502608c8096b6da291ca246b0bb8fc3843baec Mon Sep 17 00:00:00 2001 From: Ciphercat <78522797+0xrsydn@users.noreply.github.com> Date: Thu, 12 Mar 2026 16:48:30 +0000 Subject: [PATCH] fix(cli): remove ignored financials and earnings flags --- src/cli/stocks.rs | 31 ++++--------------------------- 1 file changed, 4 insertions(+), 27 deletions(-) diff --git a/src/cli/stocks.rs b/src/cli/stocks.rs index 2b69269..bd22b7f 100644 --- a/src/cli/stocks.rs +++ b/src/cli/stocks.rs @@ -111,23 +111,9 @@ pub enum StocksSubcommand { #[command(about = "Get company profile")] Profile { symbol: String }, #[command(about = "Get financial statements")] - Financials { - symbol: String, - #[arg(long, default_value = "income")] - statement: String, - }, + Financials { symbol: String }, #[command(about = "Get earnings report")] - Earnings { - symbol: String, - #[arg(long)] - annual: bool, - #[arg(long)] - quarterly: bool, - #[arg(long)] - forecast: bool, - #[arg(long)] - history: bool, - }, + Earnings { symbol: String }, #[command(about = "Get crowd sentiment")] Sentiment { symbol: String }, #[command(about = "Get AI insights")] @@ -397,10 +383,7 @@ pub fn handle( })?; render_profile(&profile, &config.output) } - StocksSubcommand::Financials { - symbol, - statement: _, - } => { + StocksSubcommand::Financials { symbol } => { let resolved = crate::api::resolve_symbol(symbol, &config.exchange)?; let financials: FinancialStatements = fetch_msn_only(&resolved, config.provider, || { @@ -408,13 +391,7 @@ pub fn handle( })?; render_financials(&financials, &config.output) } - StocksSubcommand::Earnings { - symbol, - annual: _, - quarterly: _, - forecast: _, - history: _, - } => { + StocksSubcommand::Earnings { symbol } => { let resolved = crate::api::resolve_symbol(symbol, &config.exchange)?; let earnings: EarningsReport = fetch_msn_only(&resolved, config.provider, || { MsnProvider::new(false).earnings(&resolved)