Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add CLI arg for projectBaseUrl #232

Merged
merged 3 commits into from
Mar 9, 2023

Conversation

pvallone
Copy link
Contributor

@pvallone pvallone commented Feb 7, 2023

The API provides support for opts.projectBaseUrl already, and it would be useful to be able to set it from a CLI context.

Example usage:

markdown-link-check --projectBaseUrl "c:/path/to/repo/root"

@@ -43,6 +43,7 @@ function getInputs() {
.option('-v, --verbose', 'displays detailed error information')
.option('-a, --alive <code>', 'comma separated list of HTTP codes to be considered as alive', commaSeparatedCodesList)
.option('-r, --retry', 'retry after the duration indicated in \'retry-after\' header when HTTP code is 429')
.option('--projectBaseUrl <url>', 'the URL to use for {{BASEURL}} replacement')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this would be the only CLI arg without a shorthand option (-p was already taken for --progress).

@tcort tcort merged commit 311a0fa into tcort:master Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants