OSDN Git Service

tests: don't infloop for manual test invocation with unrecognized option
authorJim Meyering <meyering@redhat.com>
Wed, 11 Mar 2009 17:36:04 +0000 (18:36 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 24 Jul 2009 13:04:42 +0000 (15:04 +0200)
* tests/test-lib.sh: Diagnose an invalid option.

tests/test-lib.sh

index 8d6ba7f..808b794 100644 (file)
@@ -51,6 +51,7 @@ do
                exit 0 ;;
        -v|--v|--ve|--ver|--verb|--verbo|--verbos|--verbose)
                verbose=t; shift ;;
+       *) echo "invalid option: $1"; exit 1;;
        esac
 done