summaryrefslogtreecommitdiff
path: root/src/cam/options.h
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2019-01-28 00:41:50 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-02-01 11:41:59 +0200
commit69be770715769bf15fab69bdb650fbcbc0e74db1 (patch)
tree08919515e9c3f7c2ed79e929e656d5dc2536752a /src/cam/options.h
parentc6468e45d1dedb295f6e67b3a49d2d4f4dfeee1c (diff)
cam: options: Return whether addOption() succeeds or not
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 <niklas.soderlund@ragnatech.se> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/cam/options.h')
-rw-r--r--src/cam/options.h2
1 files changed, 1 insertions, 1 deletions
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);