diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -11,7 +11,7 @@ Commands: init Initialize Database register Register a transaction view View Registered data - add Add a new agent to lend or pay + agent Add, update or remove an agent help Print this message or the help of the given subcommand(s) Options: @@ -36,7 +36,7 @@ CREATE TABLE Registers ( register_date INTEGER NOT NULL, amount INTEGER NOT NULL, note TEXT, - FOREIGN KEY(agent_id) REFERENCES Agents(id) + FOREIGN KEY(agent_id) REFERENCES Agents(id) ON DELETE CASCADE ) ``` @@ -48,7 +48,17 @@ debt init Add a new debtor: ``` -debt add 'Jane Doe' +debt agent -a 'Jane Doe' +``` + +Delete a created agent +``` +debt agent -d 'Jane Doe' +``` + +Update a created agent: +``` +debt agent 'Jane Doe' -u 'Joe Doe' ``` Borrow 1000 (dollars, euros or whatever) to Jane Doe: |