irods / python-irodsclient

A Python API for iRODS
Other
62 stars 73 forks source link

client_init.py needs a better usage message #651

Closed trel closed 2 weeks ago

trel commented 3 weeks ago

when the passed arguments are not what is expected, the error message is not terribly helpful

$ python irods/client_init.py abc
did not recognize authentication scheme argument

or when empty...

$ python irods/client_init.py 
Traceback (most recent call last):
  File "/Users/tgr/dev/pybinaryinpypi/python-irodsclient/irods/client_init.py", line 39, in <module>
    if sys.argv[1] in vector:
       ~~~~~~~~^^^
IndexError: list index out of range