From: Ian Jackson Date: Thu, 5 Sep 2019 13:48:19 +0000 (+0100) Subject: dgit: Warn when we see what look like our options passed too late X-Git-Tag: archive/debian/9.8~14 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=4d113afe3aee58adf0d76f3d48610b6f7d1c6739;p=dgit.git dgit: Warn when we see what look like our options passed too late Closes: #934807 Signed-off-by: Ian Jackson --- diff --git a/dgit b/dgit index 962bca1a..6f240ab0 100755 --- a/dgit +++ b/dgit @@ -6679,6 +6679,31 @@ sub build_prep ($) { } } +sub maybe_warn_opt_confusion ($$$) { + my ($subcommand, $willrun, $optsref) = @_; + foreach (@$optsref) { + if (m/^(?: --dry-run $ + | --damp-run $ + | --clean= | -w[gcnd] + | --(?:include|ignore)-dirty$ + | --quilt= | --gbp$ | --dpm$ | --baredebian + | --split-view= + | --build-products-dir= + )/x) { + print STDERR f_ <