diff options
author | jvech <jmvalenciae@unal.edu.co> | 2024-06-19 09:15:10 -0500 |
---|---|---|
committer | jvech <jmvalenciae@unal.edu.co> | 2024-06-19 09:15:10 -0500 |
commit | 4b14f87cc80e7cfb78480644281022296973bc66 (patch) | |
tree | 74a2cf5fba8557730837f1d681ea1d203b8775f7 /src/cli.rs | |
parent | 821eeb0263725d33cbb5d1a044ca593d5959031f (diff) |
feat: agent deletion and name update done
Diffstat (limited to 'src/cli.rs')
-rw-r--r-- | src/cli.rs | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -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<String> }, } |