From e3a4fe880d3221d863685bdcb2ef3ded75949364 Mon Sep 17 00:00:00 2001 From: brmbar Date: Mon, 4 Jan 2016 21:04:49 +0100 Subject: [PATCH] brmbar-cli.py docs: Two examples --- brmbar3/brmbar-cli.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/brmbar3/brmbar-cli.py b/brmbar3/brmbar-cli.py index 86332e2..be38c5f 100755 --- a/brmbar3/brmbar-cli.py +++ b/brmbar3/brmbar-cli.py @@ -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)