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

renamed base to base_url (fixes #1607) #1629

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Arteiii
Copy link
Contributor

@Arteiii Arteiii commented Feb 10, 2025

Changed the configuration parameter base to base_url to improve clarity (fixes #1607)

lychee-bin/src/options.rs Outdated Show resolved Hide resolved
@@ -80,7 +80,7 @@ remap = [
]

# Base URL or website root directory to check relative URLs.
base = "https://example.com"
base-url = "https://example.com"
Copy link
Member

Choose a reason for hiding this comment

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

I think we should stick to underscores here.

Suggested change
base-url = "https://example.com"
base_url = "https://example.com"

Also check if we have an integration test for that setting already.

@@ -75,7 +75,7 @@ header = ["name=value", "other=value"]
remap = ["https://example.com http://example.invalid"]

# Base URL or website root directory to check relative URLs.
base = "https://example.com"
base-url = "https://example.com"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
base-url = "https://example.com"
base_url = "https://example.com"

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.

Rename --base to --base-url
2 participants