From 03a86547e5d9b209016cc0b23f825d3baea92f8c Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sat, 13 Jun 2015 14:32:01 +0200 Subject: [PATCH] auto-decruft: Disable short options for NVI The short options were originally not intended to be used, but until now I did not know how to disable the short options. Signed-off-by: Niels Thykier --- dak/auto_decruft.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dak/auto_decruft.py b/dak/auto_decruft.py index a7c67fa3..62996e2b 100644 --- a/dak/auto_decruft.py +++ b/dak/auto_decruft.py @@ -413,8 +413,9 @@ def main (): ('n',"dry-run","Auto-Decruft::Options::Dry-Run"), ('d',"debug","Auto-Decruft::Options::Debug"), ('s',"suite","Auto-Decruft::Options::Suite","HasArg"), - ('z','if-newer-version-in',"Auto-Decruft::Options::OtherSuite", "HasArg"), - ('Z','if-newer-version-in-rm-msg',"Auto-Decruft::Options::OtherSuiteRMMsg", "HasArg")] + # The "\0" seems to be the only way to disable short options. + ("\0",'if-newer-version-in',"Auto-Decruft::Options::OtherSuite", "HasArg"), + ("\0",'if-newer-version-in-rm-msg',"Auto-Decruft::Options::OtherSuiteRMMsg", "HasArg")] for i in ["help", "Dry-Run", "Debug", "OtherSuite", "OtherSuiteRMMsg"]: if not cnf.has_key("Auto-Decruft::Options::%s" % (i)): cnf["Auto-Decruft::Options::%s" % (i)] = "" -- 2.39.5