Skip to content

Commit 98eec20

Browse files
Emma SteuerEmma Steuer
authored andcommitted
fix
1 parent fb046d3 commit 98eec20

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

planet/cli/subscriptions.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ async def list_subscriptions_cmd(ctx, status, limit, pretty):
9999
"--collection_id",
100100
default=None,
101101
help=
102-
"Optional collection ID for Sentinel Hub. If omitted, a new collection will be created.",
102+
'Optional collection ID for Sentinel Hub. If omitted, a new collection will be created.',
103103
)
104104
@pretty
105105
@click.pass_context
@@ -282,19 +282,21 @@ async def list_subscription_results_cmd(ctx,
282282
@click.option(
283283
'--hosting',
284284
type=types.JSON(),
285-
help='Hosting JSON. Can be a string, a filename, or - for stdin.')
285+
help='Hosting JSON. Can be a string, a filename, or - for stdin. Currently, only "sentinel_hub" is supported.')
286286
@click.option(
287287
'--clip-to-source',
288288
is_flag=True,
289289
default=False,
290290
help="Clip to the source geometry without specifying a clip tool.")
291+
@click.option("--collection-id", default=None, help='Optional collection ID for Sentinel Hub. If omitted, a new collection will be created.')
291292
@pretty
292293
def request(name,
293294
source,
294295
delivery,
295296
notifications,
296297
tools,
297298
hosting,
299+
collection_id,
298300
clip_to_source,
299301
pretty):
300302
"""Generate a subscriptions request.
@@ -304,12 +306,14 @@ def request(name,
304306
--clip-to-source option is a preview of the next API version's
305307
default behavior.
306308
"""
309+
307310
res = subscription_request.build_request(name,
308311
source,
309312
delivery,
310313
notifications=notifications,
311314
tools=tools,
312315
hosting=hosting,
316+
collection_id=collection_id,
313317
clip_to_source=clip_to_source)
314318
echo_json(res, pretty)
315319

@@ -367,6 +371,7 @@ def request_catalog(item_types,
367371
time_range_type,
368372
pretty):
369373
"""Generate a subscriptions request catalog source description."""
374+
370375
res = subscription_request.catalog_source(
371376
item_types,
372377
asset_types,

0 commit comments

Comments
 (0)