Closed waynesun09 closed 1 year ago
For the pylero-cmd sub commands could we also do something when the config does not exist For example:
$ pylero-cmd list --help
Traceback (most recent call last):
File "/home/waynesun/.local/share/virtualenvs/pylero-xZ4TB2uX/bin/pylero-cmd", line 49, in <module>
from pylero.cli.cmd import CmdList
File "/home/waynesun/.local/share/virtualenvs/pylero-xZ4TB2uX/lib/python3.10/site-packages/pylero/cli/cmd.py", line 9, in <module>
from pylero.document import Document
File "/home/waynesun/.local/share/virtualenvs/pylero-xZ4TB2uX/lib/python3.10/site-packages/pylero/document.py", line 24, in <module>
from pylero.work_item import _WorkItem
File "/home/waynesun/.local/share/virtualenvs/pylero-xZ4TB2uX/lib/python3.10/site-packages/pylero/work_item.py", line 1580, in <module>
cfg = Configuration()
File "/home/waynesun/.local/share/virtualenvs/pylero-xZ4TB2uX/lib/python3.10/site-packages/pylero/base_polarion.py", line 105, in __init__
raise PyleroLibException(
pylero.exceptions.PyleroLibException: The config files must contain valid values for: url, user, password and default_project
If user doesn't provide the pylero config file
Together with a lack of a manpage, it's a bit hard to understand how to provide the config. It's in the README, but I'd expect --help to work.