def do_video(self, args):
        """Video management command demonstrates multiple layers of sub-commands being handled by AutoCompleter"""
        func = getattr(args, 'func', None)
        if func is not None:
            # Call whatever subcommand function was selected
            func(self, args)
        else:
            # No subcommand was provided, so call help
            self.do_help('video')
def do_video ( self , args ) : func = getattr ( args , 'func' , None ) if func is not None : func ( self , args ) else : self . do_help ( 'video' )
Video management command demonstrates multiple layers of sub-commands being handled by AutoCompleter