From 2d5f02573f0aee3fa7d650aa7fa5776ca83e98b2 Mon Sep 17 00:00:00 2001 From: Ondrej Mikle Date: Thu, 24 Jul 2014 15:53:03 +0200 Subject: [PATCH] More documentation --- README.md | 7 +++++++ brmdoor_adduser.py | 1 + 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index 7a456c7..bb96600 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,13 @@ So we need and have: edit the sqlite database - extensibility +## Building + +You need just to run `make`. Additional dependencies: + +- [SWIG](http://www.swig.org/) +- [WiringPi2 pythonic binding](https://github.com/WiringPi/WiringPi2-Python) (for switching lock on Raspberry) + ## Howto 1. Create the database diff --git a/brmdoor_adduser.py b/brmdoor_adduser.py index 6b29458..2aaa2f9 100755 --- a/brmdoor_adduser.py +++ b/brmdoor_adduser.py @@ -58,6 +58,7 @@ if __name__ == "__main__": if opts.config is None: print >> sys.stderr, "You must specify config file via the -c option!" + parser.print_help() sys.exit(1) if opts.authtype not in ["uid", "hmac"]: