pingcap / tidb-tools

tidb-tools are some useful tool collections for TiDB.
Apache License 2.0
290 stars 194 forks source link

sync-diff-inspector: Description for -T is incorrect #790

Closed dveeden closed 6 months ago

dveeden commented 6 months ago

Bug Report

  1. What did you do?
$ ./bin/sync_diff_inspector -h
Usage of diff:
  -V, --version                   print version of sync_diff_inspector
  -L, --log-level string          log level: debug, info, warn, error, fatal (default "info")
  -C, --config string             Config file
  -T, --template string           <dm|norm> export a template config file in the current directory     <------------------------------------------
      --dm-addr string            the address of DM
      --dm-task string            identifier of dm task
      --check-thread-count int    how many goroutines are created to check data (default 4)
      --export-fix-sql            set true if want to compare rows or set to false will only compare checksum (default true)
      --check-struct-only         ignore check table's data
      --skip-non-existing-table   skip validation for tables that don't exist upstream or downstream

The -T option prints out a template to standard out, it doesn't create a file in the current directory.

  1. What did you expect to see?

  2. What did you see instead?

  3. What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?

  4. which tool are you using?

  5. what versionof tool are you using (pump -V or tidb-lightning -V or syncer -V)?