import inspect
import re


def get_args(cmd_class):
    """ Return a string that represents the arguments to the run method of the
    Sublime command class provided, edited to remove the internal python arguments
    that are not needed to invoke the command from Sublime.

    Args:
        cmd_class ():

    Returns:
        (str): Arguments taken by the command in the form of a string.
    """
    args = str(inspect.signature(cmd_class.run))
    return re.compile(r"^\(self(?:, )?(?:edit, |edit)?(.*)\)$").sub(r"{ \1 }", args)