Set the type correctly for click (#13644)

This commit is contained in:
Earle Lowe
2022-10-17 18:58:18 -05:00
committed by GitHub
parent 0e93464521
commit da3b2c3749
+2
View File
@@ -74,12 +74,14 @@ def get_transaction_cmd(wallet_rpc_port: Optional[int], fingerprint: int, id: in
"--sort-by-height",
"sort_key",
flag_value=SortKey.CONFIRMED_AT_HEIGHT,
type=SortKey,
help="Sort transactions by height",
)
@click.option(
"--sort-by-relevance",
"sort_key",
flag_value=SortKey.RELEVANCE,
type=SortKey,
default=True,
help="Sort transactions by {confirmed, height, time}",
)