Skip to content

Commit

Permalink
Allow -X HEAD on osc api requests as well
Browse files Browse the repository at this point in the history
In some cases the exit code is all you want
  • Loading branch information
dirkmueller committed Dec 7, 2023
1 parent 498a392 commit c86093b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -8747,8 +8747,8 @@ def do_importsrcpkg(self, subcmd, opts):
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',
Expand Down

0 comments on commit c86093b

Please sign in to comment.