summaryrefslogtreecommitdiff
path: root/src/cam/main.cpp
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2019-01-28 01:12:06 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-02-01 11:41:53 +0200
commit0b2822749e14ce207734ded1aa16deeeeab6369c (patch)
tree87206710bc4c6e5c38dda68bda224f64878346b0 /src/cam/main.cpp
parent65ea2422d24a30736e457fdefe31956b4428ae0f (diff)
cam: options: Move enum OptionArgument
The enumeration of the different possibilities for arguments can be used by other parser then OptionsParser. Move it outside the class to make it ready to be used by other parsers. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/cam/main.cpp')
-rw-r--r--src/cam/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cam/main.cpp b/src/cam/main.cpp
index cb98d302..bde47a8f 100644
--- a/src/cam/main.cpp
+++ b/src/cam/main.cpp
@@ -38,8 +38,7 @@ static int parseOptions(int argc, char *argv[])
OptionsParser parser;
parser.addOption(OptCamera, "Specify which camera to operate on",
- "camera", OptionsParser::ArgumentRequired,
- "camera");
+ "camera", ArgumentRequired, "camera");
parser.addOption(OptHelp, "Display this help message", "help");
parser.addOption(OptList, "List all cameras", "list");