From 31454ffda66de64fdef52e3423260d8ef8360567 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sat, 22 Feb 2014 17:39:23 +0100 Subject: [PATCH] add button/pin/passphrase protection to ping call in cmd.py --- cmd.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd.py b/cmd.py index 6c3161e..f35af8e 100755 --- a/cmd.py +++ b/cmd.py @@ -98,7 +98,7 @@ class Commands(object): return [ coin.coin_name for coin in self.client.features.coins ] def ping(self, args): - return self.client.ping(args.msg) + return self.client.ping(args.msg, button_protection=args.button_protection, pin_protection=args.pin_protection, passphrase_protection=args.passphrase_protection) def get_public_node(self, args): address_n = self.client.expand_path(args.n) @@ -190,6 +190,9 @@ class Commands(object): ping.arguments = ( (('msg',), {'type': str}), + (('-b', '--button-protection'), {'action': 'store_true', 'default': False}), + (('-p', '--pin-protection'), {'action': 'store_true', 'default': False}), + (('-r', '--passphrase-protection'), {'action': 'store_true', 'default': False}), ) set_label.arguments = (