From 6f6ac9772613208f27401b80454b0d3e1284cbbc Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Fri, 14 Feb 2020 21:56:35 +0100 Subject: [PATCH] [bumblebee-ctl] replace name with module see #547 --- bumblebee-ctl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bumblebee-ctl b/bumblebee-ctl index e08d45c..cbb6ad5 100755 --- a/bumblebee-ctl +++ b/bumblebee-ctl @@ -17,7 +17,7 @@ def main(): parser = argparse.ArgumentParser(description='send commands to bumblebee-status') parser.add_argument('-b', '--button', choices=['left-mouse', 'right-mouse', 'middle-mouse', 'wheel-up', 'wheel-down'], help='button to emulate', default='left-mouse') parser.add_argument('-i', '--id', help='ID of widget to trigger', required=True) - parser.add_argument('-n', '--name', help='name of the module to trigger', required=True) + parser.add_argument('-m', '--module', help='name of the module to trigger', required=True) args = parser.parse_args() @@ -26,7 +26,7 @@ def main(): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) s.connect(f) s.sendall(json.dumps({ - 'name': args.name, + 'name': args.module, 'instance': args.id, 'button': button[args.button], }).encode('ascii'))