mdmon: fix arg processing for -a
'-a' was not being recognised as an abbreviation for '--all'. Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
542ef4ece4
commit
bcd2b4485a
2
mdmon.c
2
mdmon.c
|
@ -299,7 +299,7 @@ int main(int argc, char *argv[])
|
||||||
{NULL, 0, NULL, 0}
|
{NULL, 0, NULL, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
while ((opt = getopt_long(argc, argv, "th", options, NULL)) != -1) {
|
while ((opt = getopt_long(argc, argv, "tha", options, NULL)) != -1) {
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
case 'a':
|
case 'a':
|
||||||
container_name = argv[optind-1];
|
container_name = argv[optind-1];
|
||||||
|
|
Loading…
Reference in New Issue