code: def register(parser):
      
      cmd_login.register(parser)
      cmd_logout.register(parser)
      cmd_switch.register(parser)
      cmd_profiles.register(parser)
docs: Register profile commands with the given parser.