diff options
author | Bruno Wagner <bwgpro@gmail.com> | 2015-06-03 17:10:08 -0300 |
---|---|---|
committer | Bruno Wagner <bwgpro@gmail.com> | 2015-06-03 17:10:08 -0300 |
commit | f4f2f0ff3e808bc2c85b914aa750ad68770ed334 (patch) | |
tree | 1163a23d6914fc6da2efddbf1f936144c1435a9f /service/pixelated/config/args.py | |
parent | ff3563cbd29cb4f2977ff476389ba679324dac5a (diff) |
Creating a leap session is now part of leap init
We've moved the init soledad method to the leap_initialization
module and gave it a meaningful name, because it was initializing
the whole leap session instead of only soledad, because of that
we removed some of the uneeded config files and deduplicated
some code on maintenance to use the same facilities.
Some arguments had non-meaningful variable names and args was being
passed everywhere (it was unclear who was using which variables in the args)
We changed the initialization to pass those arguments explicitly, then
we can factor them out sometime when it makes sense
Diffstat (limited to 'service/pixelated/config/args.py')
-rw-r--r-- | service/pixelated/config/args.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/service/pixelated/config/args.py b/service/pixelated/config/args.py index f3549df1..dd3b715d 100644 --- a/service/pixelated/config/args.py +++ b/service/pixelated/config/args.py @@ -51,7 +51,7 @@ def parser_add_default_arguments(parser): 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('-c', '--config', metavar='<configfile>', default=None, help='use specified file for credentials (for test purposes only)') - parser.add_argument('--home', help='The folder where the user agent stores its data. Defaults to ~/.leap', default=DEFAULT_LEAP_HOME) + parser.add_argument('-c', '--config', dest='config_file', metavar='<configfile>', default=None, help='use specified file for credentials (for test purposes only)') + parser.add_argument('--leap-home', help='The folder where the user agent stores its data. Defaults to ~/.leap', dest='leap_home', default=DEFAULT_LEAP_HOME) parser.add_argument('-lc', '--leap-provider-cert', metavar='<leap-provider.crt>', default=None, help='use specified file for LEAP provider cert authority certificate (url https://<LEAP-provider-domain>/ca.crt)') parser.add_argument('-lf', '--leap-provider-cert-fingerprint', metavar='<leap provider certificate fingerprint>', default=None, help='use specified fingerprint to validate connection with LEAP provider', dest='leap_provider_cert_fingerprint') |