diff options
author | Andrew Resch <andrewresch@gmail.com> | 2009-10-31 22:05:35 +0000 |
---|---|---|
committer | Andrew Resch <andrewresch@gmail.com> | 2009-10-31 22:05:35 +0000 |
commit | 87723a3354c0c1348cb8e9f832cbcba66fb645d9 (patch) | |
tree | 1c796164595a03a9af998205bbd8a39f6bc365da | |
parent | 0cb52cca23cd9437c4d708b7648a935a2560b11e (diff) | |
download | deluge-87723a3354c0c1348cb8e9f832cbcba66fb645d9.tar.gz deluge-87723a3354c0c1348cb8e9f832cbcba66fb645d9.tar.bz2 deluge-87723a3354c0c1348cb8e9f832cbcba66fb645d9.zip |
Use batch writing mode in the help command
-rw-r--r-- | deluge/ui/console/commands/help.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/deluge/ui/console/commands/help.py b/deluge/ui/console/commands/help.py index b784971cc..ddcf2f31e 100644 --- a/deluge/ui/console/commands/help.py +++ b/deluge/ui/console/commands/help.py @@ -64,10 +64,12 @@ class Command(BaseCommand): self.console.write(cmd.__doc__ or 'No help for this command') else: max_length = max( len(k) for k in self._commands) + self.console.set_batch_write(True) for cmd in sorted(self._commands): self.console.write("{!info!}" + cmd + "{!input!} - " + self._commands[cmd].__doc__ or '') self.console.write(" ") self.console.write('For help on a specific command, use "<command> --help"') + self.console.set_batch_write(False) return deferred |