|
| 1 | +## Advanced Usage |
| 2 | + |
| 3 | +To further customize your experience with the Markdown Checker, you can utilize additional command-line interface (CLI) options. |
| 4 | + |
| 5 | +## Command Line Options |
| 6 | + |
| 7 | +### `-d`, `--dir` |
| 8 | +- **Type**: `click.Path` |
| 9 | +- **Description**: Path to the root directory to check. |
| 10 | +- **Required**: Yes |
| 11 | + |
| 12 | +### `-ext`, `--extensions` |
| 13 | +- **Type**: `list[str]` |
| 14 | +- **Description**: File extensions to filter the files. |
| 15 | +- **Default**: |
| 16 | + - `.md` |
| 17 | + - `.ipynb` |
| 18 | +- **Required**: Yes |
| 19 | + |
| 20 | +### `-td`, `--tracking-domains` |
| 21 | +- **Type**: `list[str]` |
| 22 | +- **Description**: List of tracking domains to check if they have a tracking id or not. |
| 23 | +- **Default**: |
| 24 | + - `github.com` |
| 25 | + - `microsoft.com` |
| 26 | + - `visualstudio.com` |
| 27 | + - `aka.ms` |
| 28 | + - `azure.com` |
| 29 | +- **Required**: Yes |
| 30 | + |
| 31 | +### `-sf`, `--skip-files` |
| 32 | +- **Type**: `list[str]` |
| 33 | +- **Description**: List of file names to skip check. |
| 34 | +- **Default**: |
| 35 | + - `CODE_OF_CONDUCT.md` |
| 36 | + - `SECURITY.md` |
| 37 | +- **Required**: Yes |
| 38 | + |
| 39 | +### `-sd`, `--skip-domains` |
| 40 | +- **Type**: `list[str]` |
| 41 | +- **Description**: List of domains to skip checking if their urls are working or not. |
| 42 | +- **Default**: `[]` |
| 43 | +- **Required**: No |
| 44 | + |
| 45 | +### `-suc`, `--skip-urls-containing` |
| 46 | +- **Type**: `list[str]` |
| 47 | +- **Description**: List of strings to skip checking if their urls are working or not. |
| 48 | +- **Default**: |
| 49 | + - `https://www.microsoft.com/en-us/security/blog` |
| 50 | + - `video-embed.html` |
| 51 | +- **Required**: No |
| 52 | + |
| 53 | +### `-gu`, `--guide-url` |
| 54 | +- **Type**: `str` |
| 55 | +- **Description**: Full URL of your contributing guide. |
| 56 | +- **Required**: Yes |
| 57 | + |
| 58 | +### `-to`, `--timeout` |
| 59 | +- **Type**: `int` |
| 60 | +- **Description**: Timeout in seconds for the requests before retrying. |
| 61 | +- **Default**: `10` |
| 62 | +- **Required**: No |
| 63 | + |
| 64 | +### `-rt`, `--retries` |
| 65 | +- **Type**: `int` |
| 66 | +- **Description**: Number of retries for the requests before flagging a url as broken. |
| 67 | +- **Default**: `3` |
| 68 | +- **Required**: No |
| 69 | + |
| 70 | +### `-o`, `--output-file-name` |
| 71 | +- **Type**: `str` |
| 72 | +- **Description**: Name of the output file. |
| 73 | +- **Default**: `comments` |
| 74 | +- **Required**: Yes |
| 75 | + |
| 76 | + |
| 77 | +## Other Options |
| 78 | + |
| 79 | +### `--version` |
| 80 | +- **Type**: `bool` |
| 81 | +- **Description**: Show the version and exit. |
| 82 | +- **Required**: No |
| 83 | + |
| 84 | +### `--help` |
| 85 | +- **Type**: `bool` |
| 86 | +- **Description**: Show the help message and exit. |
| 87 | +- **Required**: No |
0 commit comments