diff options
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> }, } |