code: def do_commander(self):
          
          # Flatten commands list then extract primary command and its arguments.
          if self._args.commands is not None:
              cmds = []
              for cmd in self._args.commands:
                  cmds.append(flatten_args(split_command_line(arg) for arg in cmd))
          else:
              cmds = None
  
          # Enter REPL.
          PyOCDCommander(self._args, cmds).run()
docs: ! @brief Handle 'commander' subcommand.