This is a Flask-Script like decorator, provide functionality like
        @manager.command
        def foo():
            pass

        @manager.command
        def foo(first_arg, second_arg, first_option=True, second_option=3):
            pass

def command(self, profile=False):
        """This is a Flask-Script like decorator, provide functionality like
        @manager.command
        def foo():
            pass

        @manager.command
        def foo(first_arg, second_arg, first_option=True, second_option=3):
            pass
        """
        def wraped(func):
            assert inspect.isfunction(func)

            self._commands[func.__name__] = Command(func, profile)
            self._commands_list.append(func.__name__)

            return func
        return wraped