mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-23 15:56:50 +00:00
Merge "captcha.py: Split parser.add_option() calls onto newline per parameter"
This commit is contained in:
commit
c9bc0f036e
19
captcha.py
19
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",
|
||||
|
|
Loading…
Reference in a new issue