From 271e3810442cca7ba43f1aee775c36180781372a Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 10 Jan 2013 16:36:39 +0100 Subject: Handle '?' return value from getopt_long() --- src/check_hkl.c | 3 +++ src/compare_hkl.c | 3 +++ src/get_hkl.c | 3 +++ src/hdfsee.c | 3 +++ src/indexamajig.c | 3 +++ src/partial_sim.c | 3 +++ src/partialator.c | 3 +++ src/pattern_sim.c | 3 +++ src/process_hkl.c | 3 +++ src/render_hkl.c | 3 +++ 10 files changed, 30 insertions(+) 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; -- cgit v1.2.3