From 69be770715769bf15fab69bdb650fbcbc0e74db1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20S=C3=B6derlund?= Date: Mon, 28 Jan 2019 00:41:50 +0100 Subject: cam: options: Return whether addOption() succeeds or not MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To later extend the options handling to cover subparsing of arguments it will be needed to know if the addition of the option itself was successful or not. The information is already present in addOption() this change just makes it available. Signed-off-by: Niklas Söderlund Signed-off-by: Laurent Pinchart --- src/cam/options.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cam/options.h') diff --git a/src/cam/options.h b/src/cam/options.h index 2bf1f160..2272385a 100644 --- a/src/cam/options.h +++ b/src/cam/options.h @@ -49,7 +49,7 @@ public: { }; - void addOption(int opt, const char *help, const char *name = nullptr, + bool addOption(int opt, const char *help, const char *name = nullptr, OptionArgument argument = ArgumentNone, const char *argumentName = nullptr); -- cgit v1.2.1