mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-31 09:50:58 +00:00
-c <coin> CLI argument (#110)
This commit is contained in:
parent
a99e29a05f
commit
44b51af1d8
@ -235,7 +235,7 @@ class Commands(object):
|
|||||||
|
|
||||||
def get_public_node(self, args):
|
def get_public_node(self, args):
|
||||||
address_n = self.client.expand_path(args.n)
|
address_n = self.client.expand_path(args.n)
|
||||||
return self.client.get_public_node(address_n, ecdsa_curve_name=args.curve, show_display=args.show_display, coin_name=args.coin_name)
|
return self.client.get_public_node(address_n, ecdsa_curve_name=args.curve, show_display=args.show_display, coin_name=args.coin)
|
||||||
|
|
||||||
def enable_passphrase(self, args):
|
def enable_passphrase(self, args):
|
||||||
return self.client.apply_settings(use_passphrase=True)
|
return self.client.apply_settings(use_passphrase=True)
|
||||||
@ -532,6 +532,7 @@ class Commands(object):
|
|||||||
)
|
)
|
||||||
|
|
||||||
get_public_node.arguments = (
|
get_public_node.arguments = (
|
||||||
|
(('-c', '--coin'), {'type': str, 'default': 'Bitcoin'}),
|
||||||
(('-n', '-address'), {'type': str}),
|
(('-n', '-address'), {'type': str}),
|
||||||
(('-e', '--curve'), {'type': str}),
|
(('-e', '--curve'), {'type': str}),
|
||||||
(('-d', '--show-display'), {'action': 'store_true', 'default': False}),
|
(('-d', '--show-display'), {'action': 'store_true', 'default': False}),
|
||||||
|
Loading…
Reference in New Issue
Block a user