<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def shred(args):
 """ %prog shred unitigfile Shred the unitig into one fragment per unitig to fix. This is the last resort as a desperate fix. """

    p = OptionParser(shred.__doc__)
    opts, args = p.parse_args(args)

    if len(args) != 1:
        sys.exit(not p.print_help())

    s, = args
    u = UnitigLayout(s)
    u.shred()
    u.print_to_file(inplace=True)