Author: andar

Revision: 6010

Log:
        Fix printing 'rm' command usage when called with no arguments

Diff:
Modified: branches/1.2_RC/deluge/ui/console/commands/rm.py
===================================================================
--- branches/1.2_RC/deluge/ui/console/commands/rm.py    2009-12-11 21:00:12 UTC 
(rev 6009)
+++ branches/1.2_RC/deluge/ui/console/commands/rm.py    2009-12-11 21:19:48 UTC 
(rev 6010)
@@ -54,7 +54,7 @@
     def handle(self, *args, **options):
         self.console = component.get("ConsoleUI")
         if len(args) == 0:
-            self.console.write(usage)
+            self.console.write(self.usage)
 
         torrent_ids = []
         for arg in args:

Modified: trunk/deluge/ui/console/commands/rm.py
===================================================================
--- trunk/deluge/ui/console/commands/rm.py      2009-12-11 21:00:12 UTC (rev 
6009)
+++ trunk/deluge/ui/console/commands/rm.py      2009-12-11 21:19:48 UTC (rev 
6010)
@@ -54,7 +54,7 @@
     def handle(self, *args, **options):
         self.console = component.get("ConsoleUI")
         if len(args) == 0:
-            self.console.write(usage)
+            self.console.write(self.usage)
 
         torrent_ids = []
         for arg in args:


--

You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.


Reply via email to