diff options
author | Bruno Wagner <bwagner@thoughtworks.com> | 2014-10-22 18:26:25 +0200 |
---|---|---|
committer | Bruno Wagner <bwagner@thoughtworks.com> | 2014-10-22 18:28:23 +0200 |
commit | a2e4f6e4816d4f0d92888b577b76153cf8c65e19 (patch) | |
tree | 779ba7e2f39d83616c2b7835e7e2a5a0c469ca60 /service/pixelated/config/args.py | |
parent | a69591d9c8a166a1b6cb1ee19dd1f8bae0c810c5 (diff) |
Host and port are now user agent switches, not depending on .pixelated file anymore
Diffstat (limited to 'service/pixelated/config/args.py')
-rw-r--r-- | service/pixelated/config/args.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/service/pixelated/config/args.py b/service/pixelated/config/args.py index 0e830e0a..93453075 100644 --- a/service/pixelated/config/args.py +++ b/service/pixelated/config/args.py @@ -20,12 +20,12 @@ import os def parse(): - default_config_path = os.path.join(os.environ['HOME'], '.pixelated') parser = argparse.ArgumentParser(description='Pixelated user agent.') - parser.add_argument('--debug', action='store_true', - help='DEBUG mode.') + parser.add_argument('--debug', action='store_true', help='DEBUG mode.') + parser.add_argument('--dispatcher', action='store_true', help='run in organization mode, the credentials will be received from the dispatcher this way') parser.add_argument('--register', metavar='username', help='register user with name.') - parser.add_argument('-c', '--config', metavar='configfile', default=default_config_path, - help='use specified config file. Default is ~/.pixelated.') + 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)') args = parser.parse_args() return args |