def migration_mode()

in migration_toolkit/common/argparse_arguments.py [0:0]


def migration_mode(parser):
  parser.add_argument(
      "migration_mode",
      help=(
          f"Migration mode.\n'{MigrationMode.DRY_RUN.value}': only generate the"
          " DDL for 'CREATE TABLE' and SQL for copying data, without"
          f" executing.\n'{MigrationMode.CREATE_TABLE.value}': create a table"
          " in BigQuery, and only generate SQL for copying data without"
          f" executing.\n'{MigrationMode.FULL.value}': create a table in"
          " BigQuery and copy all rows from existing BigQuery table."
      ),
      type=MigrationMode,
      choices=list(MigrationMode),
  )