@command<EOL><INDENT>def do_edit(self, arg, arguments):<DEDENT>
def _create_file(filename):<EOL><INDENT>if not os.path.exists(filename):<EOL><INDENT>file(filename, '<STR_LIT>').close()<EOL><DEDENT><DEDENT>def _edit(prefix, editors, filename):<EOL><INDENT>for editor in editors:<EOL><INDENT>if os.path.exists(editor):<EOL><INDENT>_create_file(filename)<EOL>os.system("<STR_LIT>".format(prefix, editor, filename))<EOL>return True<EOL><DEDENT><DEDENT>return False<EOL><DEDENT>filename = arg<EOL>what =  platform.system().lower()<EOL>prefix = "<STR_LIT>"<EOL>print (what)<EOL>if '<STR_LIT>' in what:<EOL><INDENT>editors = ["<STR_LIT>",<EOL>"<STR_LIT>"]<EOL>prefix = "<STR_LIT>"<EOL><DEDENT>elif "<STR_LIT>" in what:<EOL><INDENT>editors = ["<STR_LIT>",<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>"<STR_LIT>"]<EOL><DEDENT>elif "<STR_LIT>" in what:<EOL><INDENT>editors = ["<STR_LIT>",<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>"<STR_LIT>"]<EOL><DEDENT>else:<EOL><INDENT>Console.error("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>return<EOL><DEDENT>if not _edit(prefix, editors, filename):<EOL><INDENT>Console.error("<STR_LIT>"<EOL>.format(str(editors)))<EOL><DEDENT>
::

    Usage:
            edit FILENAME

    Edits the file with the given name

    Arguments:
        FILENAME  the file to edit