diff options
Diffstat (limited to 'src/powder_plot.c')
-rw-r--r-- | src/powder_plot.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/powder_plot.c b/src/powder_plot.c index 01a4328e..f0d30553 100644 --- a/src/powder_plot.c +++ b/src/powder_plot.c @@ -62,29 +62,24 @@ int main(int argc, char *argv[]) while ((c = getopt_long(argc, argv, "hi:g:", longopts, NULL)) != -1) { switch (c) { - case 'h' : { + case 'h' : show_help(argv[0]); return 0; - } - case 0 : { + case 0 : break; - } - case 'i' : { + case 'i' : filename = strdup(optarg); break; - } - case 'g' : { + case 'g' : geometry = strdup(optarg); break; - } - default : { + default : return 1; } - } } |