[dm-devel] [PATCH 13/57] multipathd: print error message for invalid arguments
Hannes Reinecke
hare at suse.de
Wed Apr 27 11:10:14 UTC 2016
Signed-off-by: Hannes Reinecke <hare at suse.de>
---
multipathd/main.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/multipathd/main.c b/multipathd/main.c
index 18b225a..59f0c68 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -2234,7 +2234,9 @@ main (int argc, char *argv[])
conf->ignore_new_devs = 1;
break;
default:
- ;
+ fprintf(stderr, "Invalid argument '-%c'\n",
+ optopt);
+ exit(1);
}
}
if (optind < argc) {
--
2.6.6
More information about the dm-devel
mailing list