You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`-t`|`--topic`| The MQTT topic the client will subscribe to. ||
4
-
|`-q`|`--qos`| Define the quality of service level. If only one QoS is specified it will be used for all topics.<br> You can define a specific QoS level for every topic. The corresponding QoS levels will be matched in order to the given topics. |`0`|
5
-
|`-of`|`--outputToFile`| Append the received publish messages to a file. Creates the file if it does not exist. ||
6
-
|`-b64`|`--base64`| Whether the received publish messages will be base64 encoded. |`false`|
7
-
|`-J`|`--jsonOutput`| Print the received publishes in pretty JSON format. |`false`|
8
-
|`-T`|`--showTopics`| Prepend the specific topic name to the received publish. |`false`|
9
-
|`-up`|`--userProperty`| A user property of the subscribe message. ||
|`-t`|`--topic`| The MQTT topic the client will subscribe to. ||
4
+
|`-q`|`--qos`| Define the quality of service level. If only one QoS is specified it will be used for all topics.<br> You can define a specific QoS level for every topic. The corresponding QoS levels will be matched in order to the given topics. |`0`|
5
+
||`--output-to-file`| Append the received publish messages to a file. Creates the file if it does not exist. ||
6
+
||`--base64`| Whether the received publish messages will be base64 encoded. |`false`|
7
+
|`-J`|`--json-output`| Print the received publishes in pretty JSON format. |`false`|
8
+
|`-T`|`--show-topics`| Prepend the specific topic name to the received publish. |`false`|
9
+
||`--user-property`| A user property of the subscribe message. ||
"A mix of the user properties legacy options \"-up\" or \"--userProperty\" and the current \"--user-property\" is used. Please only use \"--user-property\" as the legacy options will be removed in a future version.");
description = "Options \"-up\" and \"--userProperty\" are legacy, please use \"--user-property\". Legacy options will be removed in a future version.")
"A mix of the user properties legacy options \"-up\" or \"--userProperty\" and the current \"--user-property\" is used. Please only use \"--user-property\" as the legacy options will be removed in a future version.");
91
+
}
92
+
userPropertiesFromLegacyOption = true;
93
+
userProperties = userPropertiesLegacy;
94
+
}
95
+
96
+
private@NullableFileoutputFile = null;
97
+
98
+
@SuppressWarnings("unused")
99
+
@CommandLine.Option(names = {"--output-to-file"},
59
100
description = "A file to which the received publish messages will be written")
"A mix of the output file legacy options \"-of\" or \"--outputToFile\" and the current \"--output-to-file\" is used. Please only use \"--output-to-file\" as the legacy options will be removed in a future version.");
description = "Options \"-of\" and \"--outputToFile\" are legacy, please use \"--output-to-file\". Legacy options will be removed in a future version")
"A mix of the output file legacy options \"-of\" or \"--outputToFile\" and the current \"--output-to-file\" is used. Please only use \"--output-to-file\" as the legacy options will be removed in a future version.");
121
+
}
122
+
this.outputFile = outputFileLegacy;
123
+
}
124
+
125
+
privatebooleanisEncodePayloadInBase64 = false;
61
126
62
127
@SuppressWarnings("unused")
63
-
@CommandLine.Option(names = {"-b64", "--base64"},
128
+
@CommandLine.Option(names = {"--base64"},
64
129
description = "Specify the encoding of the received messages as Base64 (default: false)")
"A mix of the base64 legacy options \"-b64\" and the current \"--base64\" is used. Please only use \"--base64\" as the legacy options will be removed in a future version.");
134
+
}
135
+
isEncodePayloadInBase64 = base64;
136
+
}
137
+
138
+
@SuppressWarnings("unused")
139
+
@Deprecated(since = "4.34.0", forRemoval = true)
140
+
@CommandLine.Option(names = {"-b64"},
141
+
hidden = true,
142
+
description = "Option \"-b64\" is legacy, please use \"--base64\". The legacy option will be removed in a future version")
"A mix of the base64 legacy options \"-b64\" and the current \"--base64\" is used. Please only use \"--base64\" as the legacy options will be removed in a future version.");
"A mix of the json output legacy options \"--jsonOutput\" and the current \"-J\" or \"--json-output\" is used. Please only use \"-J\" or \"--json-output\" as the legacy options will be removed in a future version.");
163
+
}
164
+
this.jsonOutput = jsonOutput;
165
+
}
166
+
167
+
@SuppressWarnings("unused")
168
+
@Deprecated(since = "4.34.0", forRemoval = true)
169
+
@CommandLine.Option(names = {"--jsonOutput"},
170
+
hidden = true,
171
+
description = "Option \"--jsonOutput\" is legacy, please use \"--json-output\". The legacy option will be removed in a future version")
"A mix of the json output legacy options \"--jsonOutput\" and the current \"-J\" or \"--json-output\" is used. Please only use \"-J\" or \"--json-output\" as the legacy options will be removed in a future version.");
"A mix of the show topics legacy options \"--showTopics\" and the current \"-T\" or \"--show-topics\" is used. Please only use \"-T\" or \"--show-topics\" as the legacy options will be removed in a future version.");
192
+
}
193
+
this.showTopics = showTopics;
194
+
}
195
+
196
+
@SuppressWarnings("unused")
197
+
@Deprecated(since = "4.34.0", forRemoval = true)
198
+
@CommandLine.Option(names = {"--showTopics"},
199
+
hidden = true,
200
+
description = "Option \"--showTopics\" is legacy, please use \"-T\" or \"--show-topics\". The legacy option will be removed in a future version")
"A mix of the show topics legacy options \"--showTopics\" and the current \"-T\" or \"--show-topics\" is used. Please only use \"-T\" or \"--show-topics\" as the legacy options will be removed in a future version.");
0 commit comments