Skip to content

Commit 923215e

Browse files
committed
The -p option takes a mandatory argument
Signed-off-by: Jan Dubois <jan.dubois@suse.com>
1 parent bd8bf26 commit 923215e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ struct cli_options *cli_options_parse(int argc, char *argv[]) {
100100
{0, 0, 0, 0},
101101
};
102102
int opt = 0;
103-
while ((opt = getopt_long(argc, argv, "hvp", longopts, NULL)) != -1) {
103+
while ((opt = getopt_long(argc, argv, "hvp:", longopts, NULL)) != -1) {
104104
switch (opt) {
105105
case CLI_OPT_SOCKET_GROUP:
106106
res->socket_group = strdup(optarg);

0 commit comments

Comments
 (0)