summaryrefslogtreecommitdiff
path: root/src/cam/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cam/main.cpp')
-rw-r--r--src/cam/main.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/cam/main.cpp b/src/cam/main.cpp
index bde47a8f..7934d0bf 100644
--- a/src/cam/main.cpp
+++ b/src/cam/main.cpp
@@ -37,10 +37,12 @@ static int parseOptions(int argc, char *argv[])
{
OptionsParser parser;
- parser.addOption(OptCamera, "Specify which camera to operate on",
- "camera", ArgumentRequired, "camera");
- parser.addOption(OptHelp, "Display this help message", "help");
- parser.addOption(OptList, "List all cameras", "list");
+ parser.addOption(OptCamera, OptionString,
+ "Specify which camera to operate on", "camera",
+ ArgumentRequired, "camera");
+ parser.addOption(OptHelp, OptionNone, "Display this help message",
+ "help");
+ parser.addOption(OptList, OptionNone, "List all cameras", "list");
options = parser.parse(argc, argv);
if (!options.valid())