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

dnstable_dump --rdata and --rrset switches don't work #53

Open
reedjc opened this issue May 9, 2019 · 0 comments
Open

dnstable_dump --rdata and --rrset switches don't work #53

reedjc opened this issue May 9, 2019 · 0 comments

Comments

@reedjc
Copy link
Contributor

reedjc commented May 9, 2019

The dnstable_dump usage and manpage document the --rdata and --rrset switches.

[-r] or --rrset output rrset records
[-d] or --rdata output rdata records

Using the long argument fails like:
dnstable_dump: usage problem, '--rdata' might be 'rdata_names' or 'rdata'

It uses the argv library included in libmy. I checked the newer argv code. There is no option to do exact matches (or don't do partial matches). Also argv doesn't document the long arguments.
https://256stuff.com/sources/argv/argv.html#Long-Versus-Short

So when --rrset_names and --rdata_names switches were added, it broken long arguments for --rrset and --rdata.

As a workaround, the short arguments work.

When this is resolved, also add unit tests for the switches.

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