From 451067bf0587fa1c1c112cd222196e007c2f7665 Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Tue, 20 Sep 2022 10:03:42 +0200 Subject: [PATCH] Fix 'osc whois' command --- osc/commandline.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index 8e13f4d9..1ba606af 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -8331,10 +8331,12 @@ Please submit there instead, or use --nodevelproject to force direct submission. @cmdln.alias('who') @cmdln.alias('user') - def do_whois(self, subcmd, opts, *usernames): + @cmdln.option('user', nargs='*') + def do_whois(self, subcmd, opts): """ Show fullname and email of a buildservice user """ + usernames = opts.user apiurl = self.get_api_url() if len(usernames) < 1: if 'user' not in conf.config['api_host_options'][apiurl]: