Skip to content

Commit 29069b4

Browse files
committed
Updated wrong flag name.
Signed-off-by: Bartlomiej Plotka <[email protected]>
1 parent 758579f commit 29069b4

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ We use *breaking* word for marking changes that are not backward compatible (rel
1010

1111
## Unreleased
1212

13+
### Changed
14+
15+
* Changed `--links.validate.address-regex` flag to `--links.validate.without-address-regex`.
16+
1317
## [v0.1.0](https://github.com/bwplotka/mdox/releases/tag/v0.1.0)
1418

1519
Initial release.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Flags:
5555
exists).Absolute path links will be converted
5656
to relative links to anchor dri as well.
5757
-l, --links.validate If true, all links will be validated
58-
--links.validate.address-regex=^$
58+
--links.validate.without-address-regex=^$
5959
If specified, all links will be validated,
6060
except those matching the given target address.
6161

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ This directive runs executable with arguments and put its stderr and stdout outp
117117
"Absolute path links will be converted to relative links to anchor dri as well.").Regexp()
118118
// TODO(bwplotka): Add cache in file?
119119
linksValidateEnabled := cmd.Flag("links.validate", "If true, all links will be validated").Short('l').Bool()
120-
linksValidateExceptDomains := cmd.Flag("links.validate.address-regex", "If specified, all links will be validated, except those matching the given target address.").Default(`^$`).Regexp()
120+
linksValidateExceptDomains := cmd.Flag("links.validate.without-address-regex", "If specified, all links will be validated, except those matching the given target address.").Default(`^$`).Regexp()
121121

122122
cmd.Run(func(ctx context.Context, logger log.Logger) (err error) {
123123
var opts []mdformatter.Option

0 commit comments

Comments
 (0)