def METHOD_NAME():
    '''
    Parse command line arguments.
    '''
    parser = argparse.ArgumentParser(allow_abbrev=False)
    # Fixed arguments
    parser.add_argument("build_dir",
                        help="Build directory")
    parser.add_argument("remote_host",
                        help="Remote host name or IP address")
    # Arguments about remote machine
    remote = parser.add_argument_group("Remote Machine")
    remote.add_argument("--remote-tmp", required=False,
                        help="Remote temporary directory to store SPI binary "
                             "[default=/tmp for Linux remote]")
    remote.add_argument("--dpcmd", required=False, default="dpcmd",
                        help="Full path to dpcmd on remote machine")
    # Remote machine type.
    # This affects how remote path is constructed.
    remote_type = remote.add_mutually_exclusive_group()
    remote_type.add_argument("--remote-is-linux", required=False,
                             default=True, action="store_true",
                             help="Set if remote machine is a Linux-like machine [default]")
    remote_type.add_argument("--remote-is-win", required=False,
                             action="store_true",
                             help="Set if remote machine is a Windows machine")
    return parser.METHOD_NAME()