def register_command(self, name):
return register_command(self, name)<EOL>
Decorator to create and register a command from a function.

        Args
        ----
        name : str
            The name given to the registered command.

        Example
        -------
        .. testcode::

           mygit = Command(name='mygit')

           @mygit.register_command(name='status')
           def status():
               print 'Nothing to commit.'

        .. doctest::
           :hide:

           >>> mygit.init()
           >>> mygit.parse_args(['status'])
           Nothing to commit.