Commit 4434a5e4 authored by Frans Pop's avatar Frans Pop

Error out on unrecognized options

Currently debootstrap just breaks out of the loop on an unrecognized
option which means that that option and anything following it will be
taken as arguments leading to weird failures later.
Better to error out instead.

r50953
parent 065b67e0
debootstrap (1.0.9) UNRELEASED; urgency=low
* Error out on unrecognized options to avoid invalid options to be
recognized as arguments.
-- Frans Pop <fjp@debian.org> Sat, 19 Jan 2008 10:05:26 +0100
debootstrap (1.0.8) unstable; urgency=low
[ Frans Pop ]
......
......@@ -280,6 +280,9 @@ if [ $# != 0 ] ; then
error 1 NEEDARG "option requires an argument %s" "$1"
fi
;;
--*)
error 1 BADARG "unrecognized or invalid option %s" "$1"
;;
*)
break
;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment