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

Rebuild index database does not respect selected source #154

Open
damb opened this issue May 7, 2023 · 0 comments
Open

Rebuild index database does not respect selected source #154

damb opened this issue May 7, 2023 · 0 comments

Comments

@damb
Copy link

damb commented May 7, 2023

Hi,

cppman -h states that rebuilding the index database does respect the configured source i.e.

[...]
  -r, --rebuild-index   rebuild index database for the selected source, either
                        'cppreference.com' or 'cplusplus.com'.
[...]

In fact all sources are updated

cppman/cppman/main.py

Lines 135 to 138 in 2bb55e8

sources = [('cplusplus.com', 'https://cplusplus.com/reference/', None),
('cppreference.com', 'https://en.cppreference.com/w/cpp', '/w/cpp')]
for table, url, path in sources:

I'm not sure which is the behaviour actually desired (Though, I assume it is the behaviour documented in the help.). Please let me know. I happily provide a PR.

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

No branches or pull requests

1 participant