aboutsummaryrefslogtreecommitdiff
path: root/src/hdfsee.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-05-30 17:17:11 +0200
committerThomas White <taw@physics.org>2012-05-30 17:17:11 +0200
commit4e0fe58f0d35f2a73f718917b2b99dc17fb9f7dd (patch)
tree4b1279360d9d4de28825e4608f554c187ed6ee0d /src/hdfsee.c
parent781b32aa84eb9fb3092636beb3f6e4fee43add6c (diff)
Formatting
Diffstat (limited to 'src/hdfsee.c')
-rw-r--r--src/hdfsee.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/hdfsee.c b/src/hdfsee.c
index 22302ec8..613572a2 100644
--- a/src/hdfsee.c
+++ b/src/hdfsee.c
@@ -151,15 +151,16 @@ int main(int argc, char *argv[])
char *test;
switch (c) {
- case 'h' :
+
+ case 'h' :
show_help(argv[0]);
return 0;
- case 'p' :
+ case 'p' :
peaks = strdup(optarg);
break;
- case 'i' :
+ case 'i' :
boost = atoi(optarg);
if ( boost < 1 ) {
ERROR("Intensity boost must be a positive"
@@ -168,7 +169,7 @@ int main(int argc, char *argv[])
}
break;
- case 'b' :
+ case 'b' :
binning = atoi(optarg);
if ( binning < 1 ) {
ERROR("Binning must be a positive integer.\n");
@@ -176,19 +177,19 @@ int main(int argc, char *argv[])
}
break;
- case 'c' :
+ case 'c' :
cscale = strdup(optarg);
break;
- case 'e' :
+ case 'e' :
element = strdup(optarg);
break;
- case 'g' :
+ case 'g' :
geometry = strdup(optarg);
break;
- case 2 :
+ case 2 :
ring_size = strtod(optarg, &test);
if ( test == optarg ) {
ERROR("Ring size must be numerical.\n");
@@ -196,7 +197,7 @@ int main(int argc, char *argv[])
}
break;
- case 'r' :
+ case 'r' :
config_showrings = 1;
reslist = strdup(optarg);
int nchar = strlen(reslist);
@@ -219,10 +220,10 @@ int main(int argc, char *argv[])
}
break;
- case 0 :
+ case 0 :
break;
- default :
+ default :
return 1;
}