From 8ab062363ec2d3e3d6119597ca153a4e99908cfa Mon Sep 17 00:00:00 2001 From: "Peter F. Patel-Schneider" Date: Thu, 23 Dec 2021 14:18:04 -0500 Subject: [PATCH] cli: add version to output of solaar show --- lib/solaar/cli/show.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/solaar/cli/show.py b/lib/solaar/cli/show.py index 61f65dc2..071a3681 100644 --- a/lib/solaar/cli/show.py +++ b/lib/solaar/cli/show.py @@ -22,6 +22,7 @@ from logitech_receiver import receiver as _receiver from logitech_receiver import settings_templates as _settings_templates from logitech_receiver.common import NamedInt as _NamedInt from logitech_receiver.common import strhex as _strhex +from solaar import NAME, __version__ _F = _hidpp20.FEATURE @@ -271,6 +272,9 @@ def run(devices, args, find_receiver, find_device): assert devices assert args.device + print('%s version %s' % (NAME, __version__)) + print('') + device_name = args.device.lower() if device_name == 'all': @@ -289,7 +293,8 @@ def run(devices, args, find_receiver, find_device): print('') else: if dev_num == 1: - print('Wired Devices') + print('USB and Bluetooth Devices') + print('') _print_device(d, num=dev_num) dev_num += 1 return