code: def add_subparser(parser):
      """Add the subparser that needs to be used for this command"""
      hunt_parser = parser.add_parser(
          "hunt", help=SHORT_DESCRIPTION, description=DESCRIPTION
      )
  
      orion_group = cli.get_basic_args_group(
          hunt_parser, group_name="Hunt arguments", group_help=""
      )
  
      orion.core.config.experiment.add_arguments(
          orion_group,
          rename=dict(
              max_broken="--exp-max-broken",
              max_trials="--exp-max-trials",
          ),
      )
  
      orion_group.add_argument(
          "--max-trials",
          type=int,
          metavar="#",
          help="(DEPRECATED) This argument will be removed in v0.3. Use --exp-max-trials instead",
      )
  
      orion_group.add_argument(
          "--init-only",
          default=False,
          action="store_true",
          help="Only create the experiment and register in database, but do not execute any trial.",
      )
  
      worker_args_group = hunt_parser.add_argument_group(
          "Worker arguments (optional)",
          description="Arguments to automatically resolved branching events.",
      )
  
      orion.core.config.worker.add_arguments(
          worker_args_group,
          rename=dict(
              max_broken="--worker-max-broken",
              max_trials="--worker-max-trials",
          ),
      )
  
      evc_cli.get_branching_args_group(hunt_parser)
  
      cli.get_user_args_group(hunt_parser)
  
      hunt_parser.set_defaults(func=main)
      hunt_parser.set_defaults(
          help_empty=True
      )  # Print help if command is empty
  
      return hunt_parser
  
file_path: orion/src/orion/core/cli/hunt.py
imports: from __future__ import annotations
  import logging
  import orion.core
  from orion.client.experiment import ExperimentClient
  from orion.core.cli import base
  from orion.core.cli import evc
  from orion.core.io import experiment_builder
  from orion.core.utils import sigterm_as_interrupt
  from orion.core.utils.exceptions import BrokenExperiment, InexecutableUserScript, MissingResultFile
  from orion.core.utils.format_terminal import format_stats
  from orion.core.worker.consumer import Consumer
label_desc: Use image node_id 1 for calling a global function with example usage: add_subparser(parser) and returns: hunt_parser