def METHOD_NAME(cls, parser):
    parser.add_argument('--target', required=True,
                        help='target override')
    parser.add_argument('--daparg',
                        help='Additional -da arguments to pyocd tool')
    parser.add_argument('--pyocd', default='pyocd',
                        help='path to pyocd tool, default is pyocd')
    parser.add_argument('--flash-opt', default=[], action='append',
                        help='''Additional options for pyocd flash,
                        e.g. --flash-opt="-e=chip" to chip erase''')
    parser.add_argument('--frequency',
                        help='SWD clock frequency in Hz')
    parser.add_argument('--gdb-port', default=DEFAULT_PYOCD_GDB_PORT,
                        help='pyocd gdb port, defaults to {}'.format(
                            DEFAULT_PYOCD_GDB_PORT))
    parser.add_argument('--telnet-port', default=DEFAULT_PYOCD_TELNET_PORT,
                        help='pyocd telnet port, defaults to {}'.format(
                            DEFAULT_PYOCD_TELNET_PORT))
    parser.add_argument('--tui', default=False, action='store_true',
                        help='if given, GDB uses -tui')
    parser.add_argument('--board-id', dest='dev_id',
                        help='obsolete synonym for -i/--dev-id')