1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 14:56:14 +01:00

Allow -X HEAD on osc api requests as well

In some cases the exit code is all you want
This commit is contained in:
Dirk Mueller 2023-12-07 16:59:19 +01:00
parent 498a392117
commit c86093bc68
No known key found for this signature in database

View File

@ -8747,8 +8747,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
print('Package \'%s\' imported successfully' % pac)
@cmdln.option('-X', '-m', '--method', default='GET', metavar='HTTP_METHOD',
choices=('GET', 'PUT', 'POST', 'DELETE'),
help='specify HTTP method to use (GET|PUT|DELETE|POST)')
choices=('HEAD', 'GET', 'PUT', 'POST', 'DELETE'),
help='specify HTTP method to use (HEAD|GET|PUT|DELETE|POST)')
@cmdln.option('-e', '--edit', default=None, action='store_true',
help='GET, edit and PUT the location')
@cmdln.option('-d', '--data', default=None, metavar='STRING',