Skip to content

Commit 41c4f98

Browse files
authored
Merge pull request #189 from planetlabs/141
fix data quick search regression
2 parents 8153f6b + b63e212 commit 41c4f98

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

planet/scripts/opts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def limit_option(default):
7878
)
7979

8080
item_type_option = click.option(
81-
'--item-type', multiple=False, required=True, type=ItemType(), help=(
81+
'--item-type', multiple=True, required=True, type=ItemType(), help=(
8282
'Specify item type(s)'
8383
)
8484
)

planet/scripts/v1.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
)
2323
from .opts import (
2424
asset_type_option,
25-
item_type_option,
2625
bundle_option,
2726
asset_type_perms,
2827
filter_opts,
@@ -35,7 +34,8 @@
3534
AssetTypePerm,
3635
BoundingBox,
3736
metavar_docs,
38-
DateInterval
37+
DateInterval,
38+
ItemType
3939
)
4040
from .util import (
4141
call_and_wrap,
@@ -732,8 +732,12 @@ def cancel_order(order_id, pretty):
732732
type=click.Path(exists=True, resolve_path=True, readable=True,
733733
allow_dash=False, dir_okay=False,
734734
file_okay=True))
735-
@item_type_option
736735
@bundle_option
736+
@click.option(
737+
'--item-type', multiple=False, required=True, type=ItemType(), help=(
738+
'Specify an item type'
739+
)
740+
)
737741
@orders.command('create')
738742
@pretty
739743
def create_order(pretty, **kwargs):

0 commit comments

Comments
 (0)