From ced2b82f8e6d5e7759d7669b2083f30e59637ecc Mon Sep 17 00:00:00 2001 From: Folker Bernitt Date: Mon, 24 Nov 2014 18:00:16 +0100 Subject: Added capability to read credentials from stdin. - See issue https://github.com/pixelated-project/pixelated-dispatcher/issues/40 --- service/pixelated/config/args.py | 1 + 1 file changed, 1 insertion(+) (limited to 'service/pixelated/config') diff --git a/service/pixelated/config/args.py b/service/pixelated/config/args.py index 6b77f341..4ac8a2ea 100644 --- a/service/pixelated/config/args.py +++ b/service/pixelated/config/args.py @@ -21,6 +21,7 @@ def parse(): parser = argparse.ArgumentParser(description='Pixelated user agent.') parser.add_argument('--debug', action='store_true', help='DEBUG mode.') parser.add_argument('--dispatcher', help='run in organization mode, the credentials will be read from specified file', metavar='file') + parser.add_argument('--dispatcher-stdin', help='run in organization mode, the credentials will be read from stdin', default=False, action='store_true', dest='dispatcher_stdin') parser.add_argument('--host', default='127.0.0.1', help='the host to run the user agent on') parser.add_argument('--port', type=int, default=3333, help='the port to run the user agent on') parser.add_argument('-c', '--config', metavar='configfile', default=None, help='use specified file for credentials (for test purposes only)') -- cgit v1.2.3