On Tue, May 24, 2011 at 04:14:28PM +0200, Michael Hanselmann wrote:
> Am 24. Mai 2011 11:35 schrieb Iustin Pop <[email protected]>:
> > I'm always confused by this strange difference, so let's rename the
> > command to match what it tests.
> 
> Can you please add an alias for people used to the old name? Rest LGTM.

Interdiff:


diff --git a/lib/client/gnt_debug.py b/lib/client/gnt_debug.py
index d96f344..61349a9 100644
--- a/lib/client/gnt_debug.py
+++ b/lib/client/gnt_debug.py
@@ -595,6 +595,10 @@ commands = {
     "[--interval N]", "Show a list of locks in the master daemon"),
   }
 
+#: dictionary with aliases for commands
+aliases = {
+  'allocator': 'iallocator',
+  }
 
 def Main():
-  return GenericMain(commands)
+  return GenericMain(commands, aliases=aliases)

-- 
iustin

Reply via email to