diff options
author | Thomas White <taw@physics.org> | 2013-01-10 16:36:39 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2013-01-10 16:36:39 +0100 |
commit | 271e3810442cca7ba43f1aee775c36180781372a (patch) | |
tree | 5852fcb9a6bf92915e049b0b26ee8c6d4d64ab4b | |
parent | a64d5b1492a7eda72f3ff1162742f6c2aed21410 (diff) |
Handle '?' return value from getopt_long()
-rw-r--r-- | src/check_hkl.c | 3 | ||||
-rw-r--r-- | src/compare_hkl.c | 3 | ||||
-rw-r--r-- | src/get_hkl.c | 3 | ||||
-rw-r--r-- | src/hdfsee.c | 3 | ||||
-rw-r--r-- | src/indexamajig.c | 3 | ||||
-rw-r--r-- | src/partial_sim.c | 3 | ||||
-rw-r--r-- | src/partialator.c | 3 | ||||
-rw-r--r-- | src/pattern_sim.c | 3 | ||||
-rw-r--r-- | src/process_hkl.c | 3 | ||||
-rw-r--r-- | src/render_hkl.c | 3 |
10 files changed, 30 insertions, 0 deletions
diff --git a/src/check_hkl.c b/src/check_hkl.c index 8e171904..f82855ab 100644 --- a/src/check_hkl.c +++ b/src/check_hkl.c @@ -380,6 +380,9 @@ int main(int argc, char *argv[]) } break; + case '?' : + break; + default : ERROR("Unhandled option '%c'\n", c); break; diff --git a/src/compare_hkl.c b/src/compare_hkl.c index 08f26e5e..c3e7a547 100644 --- a/src/compare_hkl.c +++ b/src/compare_hkl.c @@ -771,6 +771,9 @@ int main(int argc, char *argv[]) shell_file = strdup(optarg); break; + case '?' : + break; + default : ERROR("Unhandled option '%c'\n", c); break; diff --git a/src/get_hkl.c b/src/get_hkl.c index 7b66e427..c879a51a 100644 --- a/src/get_hkl.c +++ b/src/get_hkl.c @@ -425,6 +425,9 @@ int main(int argc, char *argv[]) case 0 : break; + case '?' : + break; + default : ERROR("Unhandled option '%c'\n", c); break; diff --git a/src/hdfsee.c b/src/hdfsee.c index e5d90456..be1f4876 100644 --- a/src/hdfsee.c +++ b/src/hdfsee.c @@ -223,6 +223,9 @@ int main(int argc, char *argv[]) case 0 : break; + case '?' : + break; + default : ERROR("Unhandled option '%c'\n", c); break; diff --git a/src/indexamajig.c b/src/indexamajig.c index dcb5502f..accfa788 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -415,6 +415,9 @@ int main(int argc, char *argv[]) case 0 : break; + case '?' : + break; + default : ERROR("Unhandled option '%c'\n", c); break; diff --git a/src/partial_sim.c b/src/partial_sim.c index e9a7003e..facf14ef 100644 --- a/src/partial_sim.c +++ b/src/partial_sim.c @@ -404,6 +404,9 @@ int main(int argc, char *argv[]) case 0 : break; + case '?' : + break; + default : ERROR("Unhandled option '%c'\n", c); break; diff --git a/src/partialator.c b/src/partialator.c index 5d373f83..c2f6c299 100644 --- a/src/partialator.c +++ b/src/partialator.c @@ -370,6 +370,9 @@ int main(int argc, char *argv[]) case 0 : break; + case '?' : + break; + default : ERROR("Unhandled option '%c'\n", c); break; diff --git a/src/pattern_sim.c b/src/pattern_sim.c index 89413a07..606a173c 100644 --- a/src/pattern_sim.c +++ b/src/pattern_sim.c @@ -369,6 +369,9 @@ int main(int argc, char *argv[]) case 0 : break; + case '?' : + break; + default : ERROR("Unhandled option '%c'\n", c); break; diff --git a/src/process_hkl.c b/src/process_hkl.c index cf690e9b..8bfbea2b 100644 --- a/src/process_hkl.c +++ b/src/process_hkl.c @@ -437,6 +437,9 @@ int main(int argc, char *argv[]) } break; + case '?' : + break; + case 0 : break; diff --git a/src/render_hkl.c b/src/render_hkl.c index dbcdba43..142438e7 100644 --- a/src/render_hkl.c +++ b/src/render_hkl.c @@ -704,6 +704,9 @@ int main(int argc, char *argv[]) case 0 : break; + case '?' : + break; + default : ERROR("Unhandled option '%c'\n", c); break; |