We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64bf27e commit 8f17f3cCopy full SHA for 8f17f3c
mqtt-exec.c
@@ -205,6 +205,7 @@ int main(int argc, char *argv[])
205
break;
206
case 'P':
207
password = optarg;
208
+ break;
209
case 'q':
210
ud.qos = atoi(optarg);
211
if (!valid_qos_range(ud.qos, "QoS"))
@@ -218,6 +219,7 @@ int main(int argc, char *argv[])
218
219
220
case 'u':
221
username = optarg;
222
223
case 'v':
224
ud.verbose = 1;
225
@@ -267,7 +269,7 @@ int main(int argc, char *argv[])
267
269
}
268
270
271
if ((ud.topics == NULL) || (optind == argc))
- return usage(1);
272
+ return usage(2);
273
274
ud.command_argc = (argc - optind) + 1 + ud.verbose;
275
ud.command_argv = malloc((ud.command_argc + 1) * sizeof(char *));
0 commit comments