From 4b14f87cc80e7cfb78480644281022296973bc66 Mon Sep 17 00:00:00 2001 From: jvech Date: Wed, 19 Jun 2024 09:15:10 -0500 Subject: feat: agent deletion and name update done --- src/cli.rs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/cli.rs') diff --git a/src/cli.rs b/src/cli.rs index 38ac648..61b3d39 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -46,9 +46,21 @@ pub enum Commands { total: bool }, - /// Add a new agent to lend or pay - Add { + /// Add, update or remove an agent + Agent { name: String, + + /// Add a new agent (default) + #[arg(short,long)] + add: bool, + + /// Delete a registered agent + #[arg(short,long, conflicts_with_all = ["add", "update"])] + delete: bool, + + /// Update a registered agent + #[arg(short,long, conflicts_with_all = ["add", "delete"], value_name = "NEW_NAME")] + update: Option }, } -- cgit v1.2.3-70-g09d2