From 6eb86c5d36ece064ce2e3536e0013a14367a97f4 Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Sat, 11 Oct 2025 08:12:29 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(cli):=20add=20skip=20action=20?= =?UTF-8?q?flags=20to=20cli?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - add flags `--skip-trash` and `--skip-delete` to skip trash and delete actions - add display order and help heading for better cli usage --- src/cli/run_cli.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/run_cli.rs b/src/cli/run_cli.rs index d3f4ec3..c7771bc 100644 --- a/src/cli/run_cli.rs +++ b/src/cli/run_cli.rs @@ -4,10 +4,10 @@ use cull_gmail::{Config, EolAction, Processor, Result}; #[derive(Debug, Parser)] pub struct RunCli { /// Skip any rules that apply the action `trash` - #[clap(short = 't', long)] + #[clap(short = 't', long, display_order = 1, help_heading = "Skip Action")] skip_trash: bool, /// Skip any rules that apply the action `delete` - #[clap(short = 'd', long)] + #[clap(short = 'd', long, display_order = 2, help_heading = "Skip Action")] skip_delete: bool, }