@command<EOL><INDENT>def do_dot2(self, args, arguments):<DEDENT>
filename = arguments['<STR_LIT>']<EOL>output_format = arguments['<STR_LIT>']<EOL>base = filename.replace("<STR_LIT>", "<STR_LIT>")<EOL>out = base + "<STR_LIT:.>" + output_format<EOL>if output_format == "<STR_LIT>":<EOL><INDENT>exec_command = "<STR_LIT>" % (<EOL>file, out)<EOL><DEDENT>else:<EOL><INDENT>exec_command = "<STR_LIT>" % (output_format, file, out)<EOL><DEDENT>os.system(exec_command)<EOL>
::

    Usage:
           dot2 FILENAME FORMAT

    Export the data in cvs format to a file. Former cvs command

    Arguments:
        FILENAME   The filename
        FORMAT     the export format, pdf, png, ...