def _add_commands(self):
"""
Split up the functionality of nrfjprog into multiple sub-commands.
:param Object subparsers: https://docs.python.org/3/library/argparse.html#sub-commands.
"""
self._add_erase_command()
self._add_halt_command()
self._add_ids_command()
self._add_memrd_command()
self._add_memwr_command()
self._add_pinresetenable_command()
self._add_program_command()
self._add_readback_command()
self._add_readregs_command()
self._add_readtofile_command()
self._add_recover_command()
self._add_reset_command()
self._add_run_command()
self._add_verify_command()
self._add_version_command()
# The top-level positional commands of our command-line interface.
评论列表
文章目录