Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Reuven committed Mar 29, 2023
1 parent fd1fd07 commit 6ce0ee2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Usage of oasdiff:
-exclude-description
ignore changes to descriptions (deprecated, use '-exclude-elements description' instead)
-exclude-elements value
comma-seperated list of elements to exclude from diff
comma-separated list of elements to exclude from diff
-exclude-endpoints
exclude endpoints from output (deprecated, use '-exclude-elements endpoints' instead)
-exclude-examples
Expand All @@ -79,7 +79,7 @@ Usage of oasdiff:
-format string
output format: yaml, json, text or html (default "yaml")
-include-checks value
comma-seperated list of optional breaking-changes checks
comma-separated list of optional breaking-changes checks
-lang string
language for localized breaking changes checks errors (default "en")
-max-circular-dep int
Expand All @@ -103,6 +103,7 @@ Usage of oasdiff:
-warn-ignore string
the configuration file for ignoring warnings with '-check-breaking'
```

All arguments can be passed with one or two leading minus signs.
For example, ```-breaking-only``` and ```--breaking-only``` are equivalent.

Expand Down Expand Up @@ -432,7 +433,7 @@ You can use the `-exclude-elements` flag to exclude certain kinds of changes:
- Use `-exclude-elements summary` to exclude summary fields
- Use `-exclude-elements endpoints` to exclude the [endpoints diff](#paths-vs-endpoints)
You can ignore multiple elements with a comma-seperated list of excluded elements as in [this example](#ignore-changes-to-description-and-examples).
You can ignore multiple elements with a comma-separated list of excluded elements as in [this example](#ignore-changes-to-description-and-examples).
Note that [Extensions](https://swagger.io/specification/#specification-extensions) are always excluded from the diff.
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ func init() {
flag.BoolVar(&version, "version", false, "show version and quit")
flag.IntVar(&openapi3.CircularReferenceCounter, "max-circular-dep", 5, "maximum allowed number of circular dependencies between objects in OpenAPI specs")
flag.BoolVar(&excludeEndpoints, "exclude-endpoints", false, "exclude endpoints from output (deprecated, use '-exclude-elements endpoints' instead)")
flag.Var(&includeChecks, "include-checks", "comma-seperated list of optional breaking-changes checks")
flag.Var(&excludeElements, "exclude-elements", "comma-seperated list of elements to exclude from diff")
flag.Var(&includeChecks, "include-checks", "comma-separated list of optional breaking-changes checks")
flag.Var(&excludeElements, "exclude-elements", "comma-separated list of elements to exclude from diff")
}

func isExcludeEndpoints() bool {
Expand Down

0 comments on commit 6ce0ee2

Please sign in to comment.