def METHOD_NAME(selected_cmd, altsrc=False):
    output = script.get_output()
    source = \
        selected_cmd.script if not altsrc else selected_cmd.config_script
    if source:
        with open(source, 'r') as s:
            output.print_code(s.read())