From 34733bf6e3cc1874b6ef88bc5f9cc52c80baec8d Mon Sep 17 00:00:00 2001 From: Reedy Date: Fri, 19 Jul 2024 16:48:19 +0100 Subject: [PATCH] captcha.py: Split parser.add_option() calls onto newline per parameter Change-Id: I6be4101dd8444a19ec3c3e9a600fb2da0fce8397 --- captcha.py | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/captcha.py b/captcha.py index 6ca1a7b61..7df5331e9 100644 --- a/captcha.py +++ b/captcha.py @@ -297,7 +297,9 @@ if __name__ == "__main__": script_dir = os.path.dirname(os.path.realpath(__file__)) parser = OptionParser() parser.add_option( - "--wordlist", help="A list of words (required)", metavar="WORDS.txt" + "--wordlist", + help="A list of words (required)", + metavar="WORDS.txt" ) parser.add_option( "--random", @@ -305,14 +307,20 @@ if __name__ == "__main__": action="store_true", ) parser.add_option( - "--key", help="The passphrase set as $wgCaptchaSecret (required)", metavar="KEY" + "--key", + help="The passphrase set as $wgCaptchaSecret (required)", + metavar="KEY" ) parser.add_option( "--output", help="The directory to put the images in - $wgCaptchaDirectory (required)", metavar="DIR", ) - parser.add_option("--font", help="The font to use (required)", metavar="FONT.ttf") + parser.add_option( + "--font", + help="The font to use (required)", + metavar="FONT.ttf" + ) parser.add_option( "--font-size", help="The font size (default 40)", @@ -346,7 +354,10 @@ if __name__ == "__main__": type="int", ) parser.add_option( - "--verbose", "-v", help="Show debugging information", action="store_true" + "--verbose", + "-v", + help="Show debugging information", + action="store_true" ) parser.add_option( "--number-words",