Skip to content

Commit 56cc857

Browse files
committed
fix: cli collections dump, no tests
1 parent 3d8544d commit 56cc857

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pystac_client/cli.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def collections(
124124
else:
125125
raise KeyError("'matched' is not supported for this catalog")
126126
else:
127-
collections_dicts = [c.to_dict() for c in result.collections()]
127+
collections_dicts = list(result.collections_as_dicts())
128128
if save:
129129
with open(save, "w") as f:
130130
f.write(json.dumps(collections_dicts))
@@ -257,8 +257,7 @@ def parse_args(args: list[str]) -> dict[str, Any]:
257257
)
258258
collections_group.add_argument(
259259
"--datetime",
260-
help="Single datetime or begin and end datetime "
261-
"(e.g., 2017-01-01/2017-02-15)",
260+
help="Single datetime or begin and end datetime (e.g., 2017-01-01/2017-02-15)",
262261
)
263262
collections_group.add_argument("--q", help="Free-text search query")
264263
collections_group.add_argument(
@@ -318,8 +317,7 @@ def parse_args(args: list[str]) -> dict[str, Any]:
318317
)
319318
search_group.add_argument(
320319
"--datetime",
321-
help="Single datetime or begin and end datetime "
322-
"(e.g., 2017-01-01/2017-02-15)",
320+
help="Single datetime or begin and end datetime (e.g., 2017-01-01/2017-02-15)",
323321
)
324322
search_group.add_argument(
325323
"--query",

0 commit comments

Comments
 (0)