mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-23 00:00:02 +03:00
add short arg parsers to device add command
Without the single char (with ':' if optarg expected) only the long argument string would successfully parse. For example, now "-lasdf" parses the same as "--label asdf"
This commit is contained in:
parent
b832e3b2f7
commit
a739671c0b
@ -74,7 +74,7 @@ int cmd_device_add(int argc, char *argv[])
|
||||
bool force = false;
|
||||
int opt;
|
||||
|
||||
while ((opt = getopt_long(argc, argv, "fh",
|
||||
while ((opt = getopt_long(argc, argv, "S:B:Dl:fh",
|
||||
longopts, NULL)) != -1)
|
||||
switch (opt) {
|
||||
case 'S':
|
||||
|
Loading…
Reference in New Issue
Block a user