jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/807611 )
Change subject: [bugfix] Fix -createonly option ......................................................................
[bugfix] Fix -createonly option
Changes proposed by Shalomori123
Bug: T311173 Change-Id: I94ef9179957bd280808489c176a26025f603fba7 --- M scripts/add_text.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/add_text.py b/scripts/add_text.py index f221e39..c1251be 100755 --- a/scripts/add_text.py +++ b/scripts/add_text.py @@ -149,7 +149,7 @@ pywikibot.output("{} doesn't exist, creating it!".format(page)) return False
- elif self.opt.create: + elif self.opt.create or self.opt.createonly: return False
return super().skip_page(page) @@ -217,7 +217,7 @@
if option in ('-text', '-textfile', '-summary'): args[option[1:]] = value - elif option in ('-up', '-always', '-create', 'createonly'): + elif option in ('-up', '-always', '-create', '-createonly'): args[option[1:]] = True elif option in ('-talk', '-talkpage'): args['talk_page'] = True
pywikibot-commits@lists.wikimedia.org