def parse_commands(line):
    """Parse a line into commands and arguments"""
    segments = line.split()
    if len(segments) == 1:
        return segments[0], None
    elif len(segments) > 1:
        return segments[0], segments[1]
    else:
        return None, None