-
Notifications
You must be signed in to change notification settings - Fork 1
/
iroha-cli.py
27 lines (23 loc) · 1.06 KB
/
iroha-cli.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import os
import click
import six
#from cli.iroha_helpers.utils import save_wallet, check_wallet_exists
from cli.main import main_menu
import argparse
#Startup Arguments
#naming conventions to be standardized
parser = argparse.ArgumentParser()
parser.add_argument("--account-id", help="Iroha Account ID Must Match Private Key Existing In CLI Root Folder e.g [email protected]", required=True)
parser.add_argument("--ip", help="Iroha Node IP Address Excluding Port. Default 127.0.0.1 ", required=False, default='127.0.0.1')
parser.add_argument("--port", type=int, help="Iroha port. Default : 50051", required=False, default=50051)
parser.add_argument("--generate", type=bool,help="Generate A New KeyPair - Provide with flag \n --generate True ", required=False, default=False)
#sets user account to default creator account
iroha_config = parser.parse_args()
def main(iroha_config=iroha_config):
#if check_wallet_exists(account_id) == True:
print(iroha_config)
main_menu()
#main_menu(account_id)
#save_wallet(account_id)
if __name__ == "__main__":
main()