list input devices as default, only if no other option was specified v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Wed, 07 Apr 2021 22:55:00 +0200
branchv_0
changeset 6 1b17b8cdbfc3
parent 5 7afa994c98f0
child 7 039b3f8a3442
list input devices as default, only if no other option was specified
src/CLIParser.h
src/Configuration.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<relpipe::common::type::StringX>& 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);
 
--- 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() {