brmbar-cli.py docs: Two examples

This commit is contained in:
brmbar 2016-01-04 21:04:49 +01:00
parent 4494dafbb8
commit e3a4fe880d

View file

@ -53,7 +53,21 @@ user interfaces; you can e.g. undo a sale!).
For users, you can use their name as USER as their username
is also the barcode. For items, use listitems command first
to find out the item id.""")
to find out the item id.
EXAMPLES:
Transfer 35Kc from pasky to sachy:
$ ./brmbar-cli.py changecredit pasky -35
$ ./brmbar-cli.py changecredit sachy +35
Buy one RaspberryPi for cash from commandline:
$ ./brmbar-cli.py listitems | grep -i raspberry
Raspberry Pi 2 1277 1.00 pcs
$ ./brmbar-cli.py sellitem cash 1277 1
""")
sys.exit(1)