diff options
author | Thomas White <taw@physics.org> | 2012-05-30 17:17:11 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-05-30 17:17:11 +0200 |
commit | 4e0fe58f0d35f2a73f718917b2b99dc17fb9f7dd (patch) | |
tree | 4b1279360d9d4de28825e4608f554c187ed6ee0d /src/get_hkl.c | |
parent | 781b32aa84eb9fb3092636beb3f6e4fee43add6c (diff) |
Formatting
Diffstat (limited to 'src/get_hkl.c')
-rw-r--r-- | src/get_hkl.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/get_hkl.c b/src/get_hkl.c index 9f86f0f7..de5d74de 100644 --- a/src/get_hkl.c +++ b/src/get_hkl.c @@ -391,44 +391,46 @@ int main(int argc, char *argv[]) longopts, NULL)) != -1) { switch (c) { - case 'h' : + + case 'h' : show_help(argv[0]); return 0; - case 't' : + case 't' : template = strdup(optarg); break; - case 'o' : + case 'o' : output = strdup(optarg); break; - case 'i' : + case 'i' : input_file = strdup(optarg); break; - case 'y' : + case 'y' : mero_str = strdup(optarg); break; - case 'w' : + case 'w' : holo_str = strdup(optarg); break; - case 'e' : + case 'e' : expand_str = strdup(optarg); break; - case 2 : + case 2 : adu_per_photon = strtof(optarg, NULL); have_adu_per_photon = 1; break; - case 0 : + case 0 : break; - default : + default : return 1; + } } |