From 9b45eb28a7f1e20dbe6f5a0c15c063123966049a Mon Sep 17 00:00:00 2001 From: Terrtia Date: Wed, 28 Apr 2021 11:50:30 +0200 Subject: [PATCH] fix: [tools extract_cryptocurrency] argparse flags --- tools/extract_cryptocurrency.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/extract_cryptocurrency.py b/tools/extract_cryptocurrency.py index 16cd5045..01bfb58f 100755 --- a/tools/extract_cryptocurrency.py +++ b/tools/extract_cryptocurrency.py @@ -50,10 +50,10 @@ if __name__ == '__main__': parser = argparse.ArgumentParser(description='Trigger backgroud update') parser.add_argument('-t', '--type', help='Cryptocurrency type (bitcoin, bitcoin-cash, ethereum, litecoin, monero, dash, zcash)', type=str, dest='type', required=True, default=None) - parser.add_argument('-a', '--address', help='Cryptocurrency addresses', type=str, dest='address', required=True, default=None, nargs="*") - parser.add_argument('-p', '--page',help='page number' , type=int, default=1, dest='page') - parser.add_argument('-n', '--nb',help='number of addresses by page' , type=int, default=50, dest='nb_elem') - parser.add_argument('--node' ,help='correlation graph: max number of nodes' , type=int, default=50, dest='max_nodes') + parser.add_argument('-a', '--address', help='Cryptocurrency addresses', type=str, dest='address', default=None, nargs="*") + parser.add_argument('-p', '--page',help='page number, default=1' , type=int, default=1, dest='page') + parser.add_argument('-n', '--nb',help='number of addresses by page, default=50' , type=int, default=50, dest='nb_elem') + parser.add_argument('--node' ,help='correlation graph: max number of nodes, default=50' , type=int, default=50, dest='max_nodes') args = parser.parse_args() subtype = args.type