The Cloudeebus server must be run either with credentials and a whitelist to
restrict access to DBus services, or in opendoor mode.
- usage: cloudeebus.py [-h] [-d] [-o] [-p PORT] [-c CREDENTIALS] [-w WHITELIST]
+ usage: cloudeebus.py [-h] [-v] [-d] [-o] [-p PORT] [-c CREDENTIALS] [-w WHITELIST]
Javascript DBus bridge.
optional arguments:
-h, --help show this help message and exit
-d, --debug log debug info on standard output
+ -v, --version print version and exit
-o, --opendoor allow anonymous access to all services
-p PORT, --port PORT port number
-c CREDENTIALS, --credentials CREDENTIALS
###############################################################################
+VERSION = "0.1"
OPENDOOR = False
CREDENTIALS = {}
WHITELIST = []
cache = DbusCache()
parser = argparse.ArgumentParser(description='Javascript DBus bridge.')
+ parser.add_argument('-v', '--version', action='store_true',
+ help='print version and exit')
parser.add_argument('-d', '--debug', action='store_true',
help='log debug info on standard output')
parser.add_argument('-o', '--opendoor', action='store_true',
args = parser.parse_args(sys.argv[1:])
+ if args.version:
+ print("Cloudeebus version " + VERSION)
+ exit(0)
+
if args.debug:
log.startLogging(sys.stdout)