Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -1481,13 +1481,14 @@ def do_token(self, subcmd, opts, *args):

apiurl = self.get_api_url()
user = conf.get_apiurl_usr(apiurl)
project = None
package = None

if len(args) > 1:
if len(args) == 1:
self.argparser.error("project wide trigger is not supported")
elif len(args) > 1:
project = args[0]
package = args[1]
else:
project = None
package = None

if opts.create:
if not opts.operation:
Expand Down
Loading