78 : utils::SubCommand(parent,
this,
"Applications (at least one required)")
80 setConfigurable(addOption(
"--topic",
"List of topics subscribing to",
"string", CLI::TypeValidator<std::string>()),
true))
82 setConfigurable(addOption(
"--message",
"Message to be published",
"string", CLI::TypeValidator<std::string>()),
true))
84 setConfigurable(addFlag(
"--retain{true}",
"Message retain",
"bool",
"false", CLI::IsMember({
"true",
"false"})),
true)) {
88 required(
false,
true);
124 : utils::SubCommand(parent,
this,
"Applications")
126 setConfigurable(addOption(
"--client-id",
"MQTT Client-ID",
"string", CLI::TypeValidator<std::string>()),
true))
128 setConfigurable(addOption(
"--qos",
"Quality of service",
"uint8_t",
"0", CLI::Range(0, 2)),
true))
131 addFlag(
"--retain-session{true},-r{true}",
"Clean session",
"bool",
"false", CLI::IsMember({
"true",
"false"})),
true)
134 setConfigurable(addOption(
"--keep-alive",
"Quality of service",
"uint16_t",
"60", CLI::TypeValidator<uint16_t>()),
true))
136 setConfigurable(addOption(
"--will-topic",
"MQTT will topic",
"string", CLI::TypeValidator<std::string>()),
true))
138 setConfigurable(addOption(
"--will-message",
"MQTT will message",
"string", CLI::TypeValidator<std::string>()),
true))
140 setConfigurable(addOption(
"--will-qos",
"MQTT will quality of service",
"uint8_t",
"0", CLI::TypeValidator<uint8_t>()),
true))
142 setConfigurable(addFlag(
"--will-retain{true}",
"MQTT will message retain",
"bool",
"false", CLI::IsMember({
"true",
"false"})),
145 setConfigurable(addOption(
"--username",
"MQTT username",
"string", CLI::TypeValidator<std::string>()),
true))
147 setConfigurable(addOption(
"--password",
"MQTT password",
"string", CLI::TypeValidator<std::string>()),
true)) {