add prog name to sync arg parser

This commit is contained in:
Victor Shyba 2021-03-24 17:07:17 -03:00
parent c6372ea9de
commit 5235a150b1
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ from lbry.wallet.server.server import Server
def get_argument_parser(): def get_argument_parser():
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
prog="hub" prog="lbry-hub"
) )
parser.add_argument("spvserver", type=str, help="Python class path to SPV server implementation.", parser.add_argument("spvserver", type=str, help="Python class path to SPV server implementation.",
nargs="?", default="lbry.wallet.server.coin.LBC") nargs="?", default="lbry.wallet.server.coin.LBC")

View file

@ -82,7 +82,7 @@ def __run(args, shard):
def run_elastic_sync(): def run_elastic_sync():
logging.basicConfig(level=logging.INFO) logging.basicConfig(level=logging.INFO)
logging.info('lbry.server starting') logging.info('lbry.server starting')
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser(prog="lbry-hub-elastic-sync")
parser.add_argument("db_path", type=str) parser.add_argument("db_path", type=str)
parser.add_argument("-c", "--clients", type=int, default=16) parser.add_argument("-c", "--clients", type=int, default=16)
parser.add_argument("-b", "--blocks", type=int, default=0) parser.add_argument("-b", "--blocks", type=int, default=0)