diff mbox series

[OSSTEST,10/11] mg-repro-setup: Detect options (-...) in wrong place

Message ID 20190503165957.5960-11-ian.jackson@eu.citrix.com (mailing list archive)
State New, archived
Headers show
Series mg-repro-flight: Provide --rebuild to make variant build jobs too | expand

Commit Message

Ian Jackson May 3, 2019, 4:59 p.m. UTC
Without this they tend to be interpreted as HOSTSPECs leading to
lossage.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
v2: New patch
---
 mg-repro-setup | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/mg-repro-setup b/mg-repro-setup
index 7f075f4e..dc6c5cbb 100755
--- a/mg-repro-setup
+++ b/mg-repro-setup
@@ -197,6 +197,10 @@  while [ $# -ne 0 ]; do
                 continue
 		;;
 
+        -*)
+                badusage ': misplaced option, expected REBUILD or HOSTSPEC'
+                ;;
+
 	none:)
 		# provided so we can repro a job with no hosts
 		;;