Skip to content

Commit

Permalink
Remove command line flag -c
Browse files Browse the repository at this point in the history
Just pass the config file without -c. This may be useful for running
on windows without the CLI.
  • Loading branch information
chris-belcher committed Nov 15, 2018
1 parent dcbbf60 commit 4245f27
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions electrumpersonalserver/server/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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))
Expand Down

0 comments on commit 4245f27

Please sign in to comment.