aboutsummaryrefslogtreecommitdiff
path: root/src/process_hkl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/process_hkl.c')
-rw-r--r--src/process_hkl.c25
1 files changed, 14 insertions, 11 deletions
diff --git a/src/process_hkl.c b/src/process_hkl.c
index 28d54360..8048cf45 100644
--- a/src/process_hkl.c
+++ b/src/process_hkl.c
@@ -390,43 +390,46 @@ int main(int argc, char *argv[])
longopts, NULL)) != -1) {
switch (c) {
- case 'h' :
+
+ case 'h' :
show_help(argv[0]);
return 0;
- case 'i' :
+ case 'i' :
filename = strdup(optarg);
break;
- case 'o' :
+ case 'o' :
output = strdup(optarg);
break;
- case 's' :
+ case 's' :
config_stopafter = atoi(optarg);
break;
- case 'f' :
+ case 'f' :
config_startafter = atoi(optarg);
break;
- case 'y' :
+ case 'y' :
sym_str = strdup(optarg);
break;
- case 'g' :
+ case 'g' :
histo = strdup(optarg);
break;
- case 'z' :
+ case 'z' :
histo_params = strdup(optarg);
break;
- case 0 :
+ case 0 :
+ break;
+
+ default :
+ ERROR("Unhandled option '%c'\n", c);
break;
- default :
- return 1;
}
}