test_help_limit_default_stdout.gold.txt 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. Usage: python metrix++.py --help
  2. python metrix++.py limit --help
  3. python metrix++.py limit [options] -- [path 1] ... [path N]
  4. Options:
  5. -h, --help show this help message and exit
  6. --db-file=DB_FILE, --dbf=DB_FILE
  7. Path to a database file to read and process [default:
  8. ./metrixpp.db].
  9. --db-file-prev=DB_FILE_PREV, --dbfp=DB_FILE_PREV
  10. Path to database file with data collected for the
  11. past/previous code revision. It is used to identify
  12. and evaluate/analyze change trends. [default: none].
  13. --log-level=LOG_LEVEL, --ll=LOG_LEVEL
  14. Defines log level. Possible values are
  15. 'DEBUG','INFO','WARNING' or 'ERROR'. Default value is
  16. inherited from environment variable
  17. 'METRIXPLUSPLUS_LOG_LEVEL' if set. [default: INFO]
  18. --hotspots=HOTSPOTS, --hs=HOTSPOTS
  19. If not set (none), all exceeded limits are printed. If
  20. set, exceeded limits are sorted (the worst is the
  21. first) and only first HOTSPOTS limits are printed.
  22. [default: none]
  23. --disable-suppressions, --ds
  24. If not set (none), all suppressions are ignored and
  25. associated warnings are printed. [default: False]
  26. --warn-mode=WARN_MODE, --wm=WARN_MODE
  27. Defines the warnings mode. 'all' - all warnings
  28. active, 'new' - warnings for new regions/files only,
  29. 'trend' - warnings for new regions/files and for bad
  30. trend of modified regions/files, 'touched' - warnings
  31. for new and modified regions/files [default: all]
  32. --min-limit=MIN_LIMIT, --min=MIN_LIMIT
  33. A threshold per 'namespace:field' metric in order to
  34. select regions, which have got metric value less than
  35. the specified limit. This option can be specified
  36. multiple times, if it is necessary to apply several
  37. limits. Should be in the format:
  38. <namespace>:<field>:<limit-
  39. value>[:region_type[,region_type]], for example:
  40. 'std.code.lines:comments:1', or
  41. 'std.code.lines:comments:1:function,class'. Region
  42. types is optional specifier, and if not defined the
  43. limit is applied to regions of all types.
  44. --max-limit=MAX_LIMIT, --max=MAX_LIMIT
  45. A threshold per 'namespace:field' metric in order to
  46. select regions, which have got metric value more than
  47. the specified limit. This option can be specified
  48. multiple times, if it is necessary to apply several
  49. limits. Should be in the format:
  50. <namespace>:<field>:<limit-
  51. value>[:region_type[,region_type]], for example:
  52. 'std.code.complexity:cyclomatic:7', or
  53. 'std.code.complexity:maxdepth:5:function'. Region
  54. types is optional specifier, and if not defined the
  55. limit is applied to regions of all types.