Skip to content
Merged

141 #189

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion planet/scripts/opts.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def limit_option(default):
)

item_type_option = click.option(
'--item-type', multiple=False, required=True, type=ItemType(), help=(
'--item-type', multiple=True, required=True, type=ItemType(), help=(
'Specify item type(s)'
)
)
Expand Down
10 changes: 7 additions & 3 deletions planet/scripts/v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
)
from .opts import (
asset_type_option,
item_type_option,
bundle_option,
asset_type_perms,
filter_opts,
Expand All @@ -35,7 +34,8 @@
AssetTypePerm,
BoundingBox,
metavar_docs,
DateInterval
DateInterval,
ItemType
)
from .util import (
call_and_wrap,
Expand Down Expand Up @@ -732,8 +732,12 @@ def cancel_order(order_id, pretty):
type=click.Path(exists=True, resolve_path=True, readable=True,
allow_dash=False, dir_okay=False,
file_okay=True))
@item_type_option
@bundle_option
@click.option(
'--item-type', multiple=False, required=True, type=ItemType(), help=(
'Specify an item type'
)
)
@orders.command('create')
@pretty
def create_order(pretty, **kwargs):
Expand Down