Skip to content

Commit

Permalink
Fix long option handling
Browse files Browse the repository at this point in the history
  • Loading branch information
npmccallum committed Jun 1, 2017
1 parent b142eaa commit 7a4c2a1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions luksmeta.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,11 +368,11 @@ cmd_wipe(const struct options *opts, struct crypt_device *cd)
}

static const struct option opts[] = {
{ "help", .val = 'h' },
{ "device", true, .val = 'd' },
{ "force", true, .val = 'f' },
{ "uuid", true, .val = 'u' },
{ "slot", true, .val = 's' },
{ "help", .val = 'h' },
{ "force", no_argument, .val = 'f' },
{ "device", required_argument, .val = 'd' },
{ "uuid", required_argument, .val = 'u' },
{ "slot", required_argument, .val = 's' },
{}
};

Expand Down

0 comments on commit 7a4c2a1

Please sign in to comment.