electrum-personal-server

Maximally lightweight electrum server for a single user
git clone https://git.parazyd.org/electrum-personal-server
Log | Files | Refs | README

commit 4245f276d0948879e3907671a3870b6f6e49f68d
parent dcbbf60f42b0477e38b868bcefe37948f33e7a37
Author: chris-belcher <chris-belcher@users.noreply.github.com>
Date:   Thu, 15 Nov 2018 20:56:08 +0000

Remove command line flag -c

Just pass the config file without -c. This may be useful for running
on windows without the CLI.

Diffstat:
Melectrumpersonalserver/server/common.py | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/electrumpersonalserver/server/common.py b/electrumpersonalserver/server/common.py @@ -604,10 +604,11 @@ def parse_args(): from tempfile import gettempdir parser = ArgumentParser(description='Electrum Personal Server daemon') - parser.add_argument('-c', '--conf', required=True, + parser.add_argument('config_file', help='configuration file (mandatory)') parser.add_argument('-l', '--log', help='log file', - default='{}/electrumpersonalserver.log'.format(gettempdir())) + default='{}/electrumpersonalserver.log'.format( + gettempdir())) parser.add_argument('-a', '--appendlog', action='store_true', help='append to log file') logfmt = '%(levelname)s:%(asctime)s: %(message)s' @@ -629,7 +630,7 @@ def main(): logger.info('Logging to ' + opts.log) try: config = ConfigParser() - config.read(opts.conf) + config.read(opts.config_file) config.options("master-public-keys") except NoSectionError: logger.error("Non-existant configuration file {}".format(opts.conf))