Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomtibo committed Nov 8, 2020
1 parent b95a2ce commit 8344645
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cn-cli
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,13 @@ def main(conf):
print(json.dumps(resp))
if __name__=='__main__':
conf = argparse.ArgumentParser()
# config_file
conf.add_argument('command', nargs='?', help='Command')
conf.add_argument('arguments', nargs='*', help='Command arguments')
conf.add_argument('--cnid', nargs=1, type=str, default=['None'], choices=['000', '001', '002', '003', None], help='Set the cyphernode ID')
conf.add_argument('--key', nargs=1, type=str, default=['None'], help='Set the cyphernode autorisation key')
conf.add_argument('--url', nargs=1, type=str, default=['None'], help='Set the cyphernode URL')
# conf.add_argument('-h', '--help', help='Show this help message and exit')
conf.add_argument('-l', '--list', nargs=1, type=str, choices=['all', 'stats', 'watcher', 'spender',' admin'], help='List command available')
conf.add_argument('-i', '--info', nargs=1, type=str, metavar='COMMAND', help='Get command informations')
# if configuration file exist, load it !
if os.path.exists("{}/.cn/cn.conf".format(os.path.expanduser('~'))):
conf.add_argument('-c', '--configfile', nargs=1, type=str, default="{}/.cn/cn.conf".format(os.path.expanduser('~')), help='Define the configuration file absolute path')
else:
Expand Down

0 comments on commit 8344645

Please sign in to comment.