mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-19 17:15:26 +02:00
mh_metric: add page (#7912)
This commit is contained in:
parent
2a9bf986cb
commit
cd107da48b
1 changed files with 24 additions and 0 deletions
24
pages/common/mh_metric.md
Normal file
24
pages/common/mh_metric.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# mh_metric
|
||||
|
||||
> Calculate and enforce code metrics for MATLAB or Octave code.
|
||||
> More information: <https://misshit.org>.
|
||||
|
||||
- Print the code metrics for the specified files:
|
||||
|
||||
`mh_metric {{path/to/file1.m path/to/file2.m ...}}`
|
||||
|
||||
- Print the code metrics for the specified Octave files:
|
||||
|
||||
`mh_metric --octave {{path/to/file1.m path/to/file2.m ...}}`
|
||||
|
||||
- Print the code metrics for the specified directory recursively:
|
||||
|
||||
`mh_metric {{path/to/directory}}`
|
||||
|
||||
- Print the code metrics for the current directory:
|
||||
|
||||
`mh_metric`
|
||||
|
||||
- Print the code metrics report in HTML or JSON format:
|
||||
|
||||
`mh_metric --{{html|json}} {{path/to/output_file}}`
|
Loading…
Add table
Reference in a new issue