1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00
github.com_openSUSE_osc/osc
Mihai Moldovan f2474fa7f0 commandline: handle calls without arguments gracefully
Fixes the following error:

```
%  osc
Traceback (most recent call last):
  File "/usr/bin/osc", line 45, in <module>
    r = babysitter.run(osccli)
  File "/usr/lib/python3.10/site-packages/osc/babysitter.py", line 67, in run
    return prg.main(argv)
  File "/usr/lib/python3.10/site-packages/osc/cmdln.py", line 341, in main
    self.postoptparse()
  File "/usr/lib/python3.10/site-packages/osc/commandline.py", line 137, in postoptparse
    if self._get_canonical_cmd_name(self.args[0]) == "help":
IndexError: list index out of range
```
2022-05-30 20:43:37 +02:00
..
util Whitespace fixes as expected by pycodestyle/pep8 2022-04-27 14:13:18 +02:00
__init__.py replace urlgrabber to enable python3 compatibility 2018-10-19 09:31:37 +02:00
.gitignore convert svn:ignore to gitignore 2009-12-03 19:19:53 +01:00
babysitter.py Report a config error when trying to load credentials_mgr_class that does't exist 2022-03-28 09:49:55 +02:00
build.py Add osc helm type build support 2022-05-04 23:17:20 +02:00
checker.py Resolve PEP8 issue W291 2014-08-12 15:01:16 +02:00
cmdln.py Never require login in the help command 2022-05-05 11:07:28 +02:00
commandline.py commandline: handle calls without arguments gracefully 2022-05-30 20:43:37 +02:00
conf.py Merge pull request #1012 from adrianschroeter/obs_git 2022-05-24 11:39:45 +02:00
core.py release 0.178 2022-05-24 14:19:37 +02:00
credentials.py Handle a callable in credentials._LazyPassword.__str__ 2022-04-14 01:47:10 +02:00
fetch.py Show the md5s that are failing to validate 2022-05-06 12:27:43 +10:00
grabber.py fix broken URLError handling in OscMirrorGroup.urlgrab() 2018-11-06 13:29:17 +01:00
meter.py Fix crash on terminal resize during download 2022-01-03 11:47:33 +01:00
OscConfigParser.py Rename SafeConfigParser to ConfigParser 2020-02-07 12:04:49 +01:00
oscerr.py Report a config error when trying to load credentials_mgr_class that does't exist 2022-03-28 09:49:55 +02:00
oscssl.py Use correct appname for trusted-certs store 2019-07-28 14:59:14 +02:00
oscsslexcp.py - remove shebang line to make rpmlint happy 2010-03-21 22:57:06 +01:00