From c0e09dfbc9ca43f6753a26664b33b64905c81748 Mon Sep 17 00:00:00 2001 From: Ian Weller Date: Wed, 17 Mar 2010 18:12:25 -0500 Subject: [PATCH] commit --bot will tag edits as bot edits --- src/mw/clicommands.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mw/clicommands.py b/src/mw/clicommands.py index 9d8b2dc..de08cb6 100644 --- a/src/mw/clicommands.py +++ b/src/mw/clicommands.py @@ -180,6 +180,10 @@ class CommitCommand(CommandBase): self.parser.add_option('-m', '--message', dest='edit_summary', help='don\'t prompt for edit summary and ' 'use this instead') + self.parser.add_option('--bot', dest='bot', action='store_true', + help='mark actions as a bot (won\'t affect ' + 'anything if you don\'t have the bot right', + default=False) def _do_command(self): self._die_if_no_init() @@ -231,6 +235,8 @@ class CommitCommand(CommandBase): 'md5': textmd5, 'summary': edit_summary, } + if self.options.bot: + data['bot'] = 'bot' response = self.api.call(data) if response['edit']['result'] == 'Success': data = { -- 2.39.5