Skip to content

Commit 7a4c2a1

Browse files
committed
Fix long option handling
1 parent b142eaa commit 7a4c2a1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

luksmeta.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -368,11 +368,11 @@ cmd_wipe(const struct options *opts, struct crypt_device *cd)
368368
}
369369

370370
static const struct option opts[] = {
371-
{ "help", .val = 'h' },
372-
{ "device", true, .val = 'd' },
373-
{ "force", true, .val = 'f' },
374-
{ "uuid", true, .val = 'u' },
375-
{ "slot", true, .val = 's' },
371+
{ "help", .val = 'h' },
372+
{ "force", no_argument, .val = 'f' },
373+
{ "device", required_argument, .val = 'd' },
374+
{ "uuid", required_argument, .val = 'u' },
375+
{ "slot", required_argument, .val = 's' },
376376
{}
377377
};
378378

0 commit comments

Comments
 (0)