argument: Fix missing action_target
Our help output and mainapp code support setting an action_target but
our argument parser doesn't actually interpret the option. This was
mistakenly left out of a previous commit after refactoring.
Change-Id: Ieff5d1a457b9f2b998533b8cefd0251ccb8655f1
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/argument.cpp b/argument.cpp
index 3493b14..89c1008 100644
--- a/argument.cpp
+++ b/argument.cpp
@@ -28,14 +28,15 @@
const std::vector<std::string> emptyArg;
const std::string ArgumentParser::trueString = "true"s;
-const char* ArgumentParser::optionStr = "p:s:t:ch";
+const char* ArgumentParser::optionStr = "p:s:t:a:ch";
const option ArgumentParser::options[] =
{
- { "path", required_argument, nullptr, 'p' },
- { "service", required_argument, nullptr, 's' },
- { "target", required_argument, nullptr, 't' },
- { "continue", no_argument, nullptr, 'c' },
- { "help", no_argument, nullptr, 'h' },
+ { "path", required_argument, nullptr, 'p' },
+ { "service", required_argument, nullptr, 's' },
+ { "target", required_argument, nullptr, 't' },
+ { "action_target", required_argument, nullptr, 'a' },
+ { "continue", no_argument, nullptr, 'c' },
+ { "help", no_argument, nullptr, 'h' },
{ 0, 0, 0, 0},
};