]> git.decadent.org.uk Git - dak.git/commitdiff
auto-decruft: Disable short options for NVI
authorNiels Thykier <niels@thykier.net>
Sat, 13 Jun 2015 12:32:01 +0000 (14:32 +0200)
committerNiels Thykier <niels@thykier.net>
Sat, 13 Jun 2015 12:32:15 +0000 (14:32 +0200)
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 <niels@thykier.net>
dak/auto_decruft.py

index a7c67fa3668ed21895f68a93a7634346e5724954..62996e2b33a179b97b6fc3033883a865d549d4a0 100644 (file)
@@ -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)] = ""