X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osmclient%2Fscripts%2Fosm.py;h=5d8b2b366472e18be05adab7bb846d033a041228;hb=c009e0adcaaa63f0a998f47020472679fd295d38;hp=dee931f1e54f4b16ab82aa3a0d5881f1ccd8c6fd;hpb=ef3e9bd9d3aea645aa43461122904ad69a27b2c3;p=osm%2Fosmclient.git diff --git a/osmclient/scripts/osm.py b/osmclient/scripts/osm.py index dee931f..5d8b2b3 100755 --- a/osmclient/scripts/osm.py +++ b/osmclient/scripts/osm.py @@ -36,6 +36,11 @@ import time envvar='OSM_SO_PORT', help='hostname of server. ' + 'Also can set OSM_SO_PORT in environment') +@click.option('--so-project', + default='default', + envvar='OSM_SO_PROJECT', + help='Project Name in SO. ' + + 'Also can set OSM_SO_PROJECT in environment') @click.option('--ro-hostname', default=None, envvar='OSM_RO_HOSTNAME', @@ -47,7 +52,7 @@ import time help='hostname of RO server. ' + 'Also can set OSM_RO_PORT in environment') @click.pass_context -def cli(ctx, hostname, so_port, ro_hostname, ro_port): +def cli(ctx, hostname, so_port, so_project, ro_hostname, ro_port): if hostname is None: print( "either hostname option or OSM_HOSTNAME " + @@ -56,6 +61,7 @@ def cli(ctx, hostname, so_port, ro_hostname, ro_port): ctx.obj = client.Client( host=hostname, so_port=so_port, + so_project=so_project, ro_host=ro_hostname, ro_port=ro_port)