2023-01-15 17:50:01 -06:00
|
|
|
Output of budget.
|
|
|
|
```
|
|
|
|
Usage:
|
|
|
|
budget <action> [options] ...
|
|
|
|
Actions:
|
2023-01-17 13:42:09 -06:00
|
|
|
-h --help Prints this.
|
|
|
|
-a --account<=STRING> Management tools for an account.
|
|
|
|
-c --create<=STRING> Creates a new account with NAME.
|
|
|
|
-e --earn<=STRING> Add an earning to an account.
|
|
|
|
-p --payment<=STRING> Add a payment to an account.
|
2023-01-15 19:37:49 -06:00
|
|
|
Account Options: [-dvD]
|
2023-01-17 13:42:09 -06:00
|
|
|
-d --delete Deletes specified account.
|
|
|
|
--force-delete Deletes the specified account without confirmation.
|
|
|
|
-v --value Gets the current value of the account.
|
|
|
|
-D --description<=STRING> Changes the description of the account.
|
2023-01-15 17:50:01 -06:00
|
|
|
Create Options: [-d]
|
2023-01-17 13:42:09 -06:00
|
|
|
-d --description<=STRING> Sets a description for an account.
|
2023-01-15 17:50:01 -06:00
|
|
|
Earn Options: -v [-drD]
|
2023-01-17 13:42:09 -06:00
|
|
|
-v --value=<FlOAT> Value for earning.
|
|
|
|
-d --description=<STRING> Description for earning.
|
|
|
|
-r --receipt=<PATH> Path to file to store in DB as receipt.
|
|
|
|
-D --date=<mm/dd/yyyyTHH:MM:SS> Date as dd/mm/yyyyTHH:MM:SS. Default will be today.
|
2023-01-15 17:50:01 -06:00
|
|
|
Payment Options: -v [-drD]
|
2023-01-17 13:42:09 -06:00
|
|
|
-v --value=<FlOAT> Value for payment.
|
|
|
|
-d --description=<STRING> Description for payment.
|
|
|
|
-r --receipt=<PATH> Path to file to store in DB as receipt.
|
|
|
|
-D --date=<mm/dd/yyyyTHH:MM:SS> Date as dd/mm/yyyyTHH:MM:SS. Default will be today.
|
2023-01-15 17:50:01 -06:00
|
|
|
```
|
|
|
|
|
|
|
|
Arguments are processed like blocks with each one terminated by the next Action. For example
|
|
|
|
```
|
|
|
|
budget -cAcct -eAcct -v10.00 -r"./receipt.pdf" -pAcct -v5.50 -r"./payment.pdf"
|
2023-01-17 13:42:09 -06:00
|
|
|
````
|
2023-01-15 17:50:01 -06:00
|
|
|
Does the following in order:
|
2023-01-17 13:42:09 -06:00
|
|
|
Creates an account named Acct with no description.
|
|
|
|
Earns 10.00 to it with a receipt.
|
|
|
|
Pays 5.50 to it with a receipt.
|