# HG changeset patch # User František Kučera # Date 1617828900 -7200 # Node ID 1b17b8cdbfc3c0dec1f73602050df6733edfc2f4 # Parent 7afa994c98f0f0c5caffffbcd42daae3d505f758 list input devices as default, only if no other option was specified diff -r 7afa994c98f0 -r 1b17b8cdbfc3 src/CLIParser.h --- a/src/CLIParser.h Fri Apr 02 17:44:01 2021 +0200 +++ b/src/CLIParser.h Wed Apr 07 22:55:00 2021 +0200 @@ -54,6 +54,8 @@ Configuration parse(const std::vector& arguments) { Configuration c; + if (arguments.size() == 0) c.listInputDevices = true; + for (int i = 0; i < arguments.size();) { relpipe::common::type::StringX option = readNext(arguments, i); diff -r 7afa994c98f0 -r 1b17b8cdbfc3 src/Configuration.h --- a/src/Configuration.h Fri Apr 02 17:44:01 2021 +0200 +++ b/src/Configuration.h Wed Apr 07 22:55:00 2021 +0200 @@ -28,7 +28,7 @@ class Configuration { public: - bool listInputDevices = true; + bool listInputDevices = false; bool listInputEvents = false; virtual ~Configuration() {