X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osmclient%2Fscripts%2Fosm.py;fp=osmclient%2Fscripts%2Fosm.py;h=194196bd5a1863f9e3186d19c98304e6cbad6921;hb=cbcb47feee334c67024ed7cabfade091accde04a;hp=0a4c465d0731ab9bac38ebd6e75f2140be8ce990;hpb=c9a3f9a87f0dde283341ba13ea6d430aff5b9634;p=osm%2Fosmclient.git diff --git a/osmclient/scripts/osm.py b/osmclient/scripts/osm.py index 0a4c465..194196b 100755 --- a/osmclient/scripts/osm.py +++ b/osmclient/scripts/osm.py @@ -2236,7 +2236,8 @@ def project_show(ctx, name): confirmation_prompt=True, help='user password') @click.option('--projects', - default=None, + prompt=True, + multiple=True, help='list of project ids that the user belongs to') #@click.option('--description', # default='no description', @@ -2289,7 +2290,7 @@ def user_list(ctx, filter): exit(1) table = PrettyTable(['name', 'id']) for user in resp: - table.add_row([user['name'], user['_id']]) + table.add_row([user['username'], user['_id']]) table.align = 'l' print(table)