[kvm-unit-tests PATCH] configure: Show the option in case it is not known

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When mis-typing one of the options of the configure script, it shows
you the list of valid options, but does not tell you which option was
wrong. Then it can take a while until you figured out where the typo is.
Let's help the user here a little bit by printing which option had not
been understood.

Signed-off-by: Thomas Huth <thuth@xxxxxxxxxx>
---
 configure | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configure b/configure
index b81f2094..c36fd290 100755
--- a/configure
+++ b/configure
@@ -178,6 +178,8 @@ while [[ "$1" = -* ]]; do
 	    usage
 	    ;;
 	*)
+	    echo "Unknown option '$opt'"
+	    echo
 	    usage
 	    ;;
     esac
-- 
2.31.1




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux